Documentation
¶
Index ¶
- Constants
- type CodeResponse
- type Item
- type ItemResponse
- type ListResponse
- type Pocket
- func (v *Pocket) Add(url string) (int, error)
- func (v *Pocket) GetAccessToken(_ *fiber.Ctx) (types.KV, error)
- func (v *Pocket) GetAuthorizeURL() string
- func (v *Pocket) GetCode(state string) (*CodeResponse, error)
- func (v *Pocket) Redirect(_ *http.Request) (string, error)
- func (v *Pocket) Retrieve(count int) (*ListResponse, error)
- type TokenResponse
Constants ¶
View Source
const ( ID = "pocket" ClientIdKey = "consumer_key" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeResponse ¶
type Item ¶
type Item struct {
Id string `json:"item_id"`
ResolvedId string `json:"resolved_id"`
GivenUrl string `json:"given_url"`
GivenTitle string `json:"given_title"`
Favorite string `json:"favorite"`
Status string `json:"status"`
TimeAdded string `json:"time_added"`
TimeUpdated string `json:"time_updated"`
TimeRead string `json:"time_read"`
TimeFavorited string `json:"time_favorited"`
ResolvedTitle string `json:"resolved_title"`
ResolvedUrl string `json:"resolved_url"`
Excerpt string `json:"excerpt"`
IsArticle string `json:"is_article"`
IsIndex string `json:"is_index"`
HasVideo string `json:"has_video"`
HasImage string `json:"has_image"`
WordCount string `json:"word_count"`
}
type ItemResponse ¶
type ListResponse ¶
type Pocket ¶
type Pocket struct {
// contains filtered or unexported fields
}
func (*Pocket) GetAuthorizeURL ¶
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.