adamkrogh / goodreads-dotnet

:books: Goodreads .NET API Client Library
MIT License
51 stars 15 forks source link

Help with owned books #12

Closed PRElias closed 6 years ago

PRElias commented 7 years ago

Hello

This is actually a question: Is there any implementation of "owned books" method?

VladimirRybalko commented 6 years ago

Hi @PRElias Thanks for your question. Project is an active development phase now. We just migrated to .NET Standard 2.0 and currently working with implementations of all Goodreads endpoints.

"Owned books" method is there. Client supports below methods:

Also Goodreads API has a bug in owned_books.update endpoint. Look at #9 for more details.

However, implementation of OwnedBook endpoint was not included into the current nuget package yet. We are going to release a new version soon. So now you could clone a repository and build it yourself. (You should use VS2017 + .NET Core 2.0 SDK). But keep in mind the master branch would be unstable now. We didn't test all methods yet.

Some examples of OwnedBooksEndpoint:

var authClient = GoodreadsClient.CreateAuth(apiKey, apiSecret, accessToken.Token, accessToken.Secret);
const long userId  = <Desired user id>;
var books = await authClient.GetOwnedBooks(userId);

long ownedBookInfoId = <Desired ownedBookId>
var ownedBook= await authClient.GetOwnedBookInfo(ownedBookInfoId);

Generally, you could find all available "owned_books" method here

PRElias commented 6 years ago

Thank you for the answer and support.

VladimirRybalko commented 6 years ago

Hello @PRElias I just completed last changes in our library. I think that Goodreads dotnet is ready for release. I hope it will be very soon. We are going to create a new nuget package. Unfortunately, many broken changes were included into release. So the new nuget package is not compatible with old APIs. On the other hand, I did a lot of jobs to improve our API and make it more user friendly. I hope you will like our new application.