C# 클래스 GoodReadsSharp.GoodReadsClient

파일 보기 프로젝트 열기: AnalogJ/GoodReadsSharp

Private Properties

프로퍼티 타입 설명
AuthMethods IAuthenticator
LoadClient void
PublicMethods IAuthenticator

공개 메소드들

메소드 설명
AccountInfo ( ) : AuthUser
AddBookToShelf ( String shelfName, String bookId ) : Shelf

Add a book to a shelf using OAuth. This method can also be used to remove from shelf. You'll need to register your app (required).

AddShelf ( String shelfName ) : void
AddToOwnedBooks ( String bookId ) : AddToOwnedBooks
BookIdForIsbn ( String isbn, System.Boolean &success ) : Book
BuildAuthorizeUrl ( string callbackUrl = null ) : String
DeleteShelf ( String shelfId ) : void
GetAccessToken ( ) : UserLogin
GetToken ( ) : UserLogin

Gets a token from goodreads.com (Token cant be used until authorized!)

GetTokenAndBuildUrl ( string callback = null ) : String
GoodReadsClient ( string apiKey, string appSecret ) : System

Default Constructor for the DropboxClient

GoodReadsClient ( string apiKey, string appSecret, string userToken, string userSecret ) : System

Creates an instance of the DropNetClient given an API Key/Secret and a User Token/Secret Make sure to call AccountInfo() Method first, without the _userToken.ID field populated the api wont work.

ListBooksOnShelf ( String shelfName, Int32 page = 1 ) : ListBooksOnShelf

Lists the books on shelf.

ListOwnedBooks ( Int32 page = 1 ) : ListOwnedBooks

Returns a list of books owned by the user.

ListShelves ( Int32 page = 1 ) : ListShelves

Lists shelves for a user

RemoveBookFromShelf ( String shelfName, String bookId ) : Hash
ReviewCountsForIsbns ( List isbns ) : ReviewCountsForIsbns

Reviews the counts for isbns. Only populates the Id, Isbn and Isbn13 fields

비공개 메소드들

메소드 설명
AuthMethods ( ) : IAuthenticator
LoadClient ( ) : void
PublicMethods ( ) : IAuthenticator

메소드 상세

AccountInfo() 공개 메소드

public AccountInfo ( ) : AuthUser
리턴 AuthUser

AddBookToShelf() 공개 메소드

Add a book to a shelf using OAuth. This method can also be used to remove from shelf. You'll need to register your app (required).
public AddBookToShelf ( String shelfName, String bookId ) : Shelf
shelfName String
bookId String
리턴 GoodReadsSharp.Models.Shelf

AddShelf() 공개 메소드

public AddShelf ( String shelfName ) : void
shelfName String
리턴 void

AddToOwnedBooks() 공개 메소드

public AddToOwnedBooks ( String bookId ) : AddToOwnedBooks
bookId String
리턴 AddToOwnedBooks

BookIdForIsbn() 공개 메소드

public BookIdForIsbn ( String isbn, System.Boolean &success ) : Book
isbn String
success System.Boolean
리턴 GoodReadsSharp.Models.Book

BuildAuthorizeUrl() 공개 메소드

public BuildAuthorizeUrl ( string callbackUrl = null ) : String
callbackUrl string
리턴 String

DeleteShelf() 공개 메소드

public DeleteShelf ( String shelfId ) : void
shelfId String
리턴 void

GetAccessToken() 공개 메소드

public GetAccessToken ( ) : UserLogin
리턴 GoodReadsSharp.Models.UserLogin

GetToken() 공개 메소드

Gets a token from goodreads.com (Token cant be used until authorized!)
public GetToken ( ) : UserLogin
리턴 GoodReadsSharp.Models.UserLogin

GetTokenAndBuildUrl() 공개 메소드

public GetTokenAndBuildUrl ( string callback = null ) : String
callback string
리턴 String

GoodReadsClient() 공개 메소드

Default Constructor for the DropboxClient
public GoodReadsClient ( string apiKey, string appSecret ) : System
apiKey string The Api Key to use for the Dropbox Requests
appSecret string The Api Secret to use for the Dropbox Requests
리턴 System

GoodReadsClient() 공개 메소드

Creates an instance of the DropNetClient given an API Key/Secret and a User Token/Secret Make sure to call AccountInfo() Method first, without the _userToken.ID field populated the api wont work.
public GoodReadsClient ( string apiKey, string appSecret, string userToken, string userSecret ) : System
apiKey string The Api Key to use for the Dropbox Requests
appSecret string The Api Secret to use for the Dropbox Requests
userToken string The User authentication token
userSecret string The Users matching secret
리턴 System

ListBooksOnShelf() 공개 메소드

Lists the books on shelf.
public ListBooksOnShelf ( String shelfName, Int32 page = 1 ) : ListBooksOnShelf
shelfName String Name of the shelf.
page System.Int32 The page.
리턴 ListBooksOnShelf

ListOwnedBooks() 공개 메소드

Returns a list of books owned by the user.
public ListOwnedBooks ( Int32 page = 1 ) : ListOwnedBooks
page System.Int32
리턴 ListOwnedBooks

ListShelves() 공개 메소드

Lists shelves for a user
public ListShelves ( Int32 page = 1 ) : ListShelves
page System.Int32 The page.
리턴 ListShelves

RemoveBookFromShelf() 공개 메소드

public RemoveBookFromShelf ( String shelfName, String bookId ) : Hash
shelfName String
bookId String
리턴 GoodReadsSharp.Models.Hash

ReviewCountsForIsbns() 공개 메소드

Reviews the counts for isbns. Only populates the Id, Isbn and Isbn13 fields
public ReviewCountsForIsbns ( List isbns ) : ReviewCountsForIsbns
isbns List The isbns.
리턴 ReviewCountsForIsbns