Documentation ¶
Index ¶
- Constants
- type CodeResponse
- type Item
- type ListResponse
- type Pocket
- func (v *Pocket) AuthorizeURL() string
- func (v *Pocket) GetAccessToken(code string) (interface{}, error)
- func (v *Pocket) GetCode(state string) (*CodeResponse, error)
- func (v *Pocket) Redirect(c *fiber.Ctx, mid pb.MiddleClient) error
- func (v *Pocket) Retrieve(count int) (*ListResponse, error)
- func (v *Pocket) SetRDB(rdb *redis.Client)
- func (v *Pocket) StoreAccessToken(c *fiber.Ctx, mid pb.MiddleClient) 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 ListResponse ¶
type Pocket ¶
type Pocket struct {
// contains filtered or unexported fields
}
func (*Pocket) AuthorizeURL ¶
func (*Pocket) GetAccessToken ¶
func (*Pocket) Redirect ¶ added in v0.0.17
func (v *Pocket) Redirect(c *fiber.Ctx, mid pb.MiddleClient) error
func (*Pocket) StoreAccessToken ¶ added in v0.0.17
func (v *Pocket) StoreAccessToken(c *fiber.Ctx, mid pb.MiddleClient) error
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.