Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthenticatedUserID ¶
GetAuthenticatedUserID returns the userid of the oauthenticated user
func GetAuthenticationURL ¶
GetAuthenticationURL returns the gr authentication URL to redirect to
func GetTokenCredentials ¶
GetTokenCredentials requests and saves token credentials using the temporary oauth token returns token key
Types ¶
type Book ¶
type Book struct { ID string `xml:"id"` Title string `xml:"title"` Link string `xml:"link"` ImageURL string `xml:"image_url"` NumPages string `xml:"num_pages"` Format string `xml:"format"` Authors []Author `xml:"authors>author"` ISBN string `xml:"isbn"` }
Book models a GR book object (contained in Shelves)
type Response ¶
type Response struct { User User `xml:"user"` Book Book `xml:"book"` Books []Book `xml:"books>book"` Reviews []Review `xml:"reviews>review"` }
Response models GR responses
type Review ¶
type Review struct { Book Book `xml:"book"` Rating int `xml:"rating"` ReadAt string `xml:"read_at"` Link string `xml:"link"` }
Review models a GR review object
Click to show internal directories.
Click to hide internal directories.