Documentation ¶
Index ¶
- func AddArticle(client connector.PocketConnector, url string) (*models.AddedArticleResult, error)
- func ArchiveArticle(client connector.PocketConnector, articleID string) (bool, error)
- func BumpArticleToTop(client connector.PocketConnector, articleID string) (bool, error)
- func ConcatTags(tags []string) string
- func DeleteArticle(client connector.PocketConnector, articleID string) (bool, error)
- func FavouriteArticle(client connector.PocketConnector, articleID string) (bool, error)
- func GetUntaggedArticles(client connector.PocketConnector, start int, count int, ...) error
- func MarkArticleWithTag(client connector.PocketConnector, articleID string, tags []string) (bool, error)
- func PerformAuth(client connector.PocketConnector, delayMs time.Duration, ...) (string, error)
- func UnfavouriteArticle(client connector.PocketConnector, articleID string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddArticle ¶
func AddArticle(client connector.PocketConnector, url string) (*models.AddedArticleResult, error)
AddArticle adds a given article (by its URL) to the user's Pocket list
func ArchiveArticle ¶
func ArchiveArticle(client connector.PocketConnector, articleID string) (bool, error)
ArchiveArticle modifies a given Pocket article (by its ID) to archive it from the user's Pocket list
func BumpArticleToTop ¶
func BumpArticleToTop(client connector.PocketConnector, articleID string) (bool, error)
BumpArticleToTop modifies a given Pocket article (by its ID) to readd (unarchive) it from the user's list this also acts as a way of "bumping" the article back up to the top of the user's Pocket list
func ConcatTags ¶
ConcatTags concatenates tags into a format suitable for Pocket requests involving tags
func DeleteArticle ¶
func DeleteArticle(client connector.PocketConnector, articleID string) (bool, error)
DeleteArticle modifies a given Pocket article (by its ID) to delete it from the user's Pocket list
func FavouriteArticle ¶
func FavouriteArticle(client connector.PocketConnector, articleID string) (bool, error)
FavouriteArticle modifies a given Pocket article (by its ID) to mark it as a favourite
func GetUntaggedArticles ¶
func GetUntaggedArticles(client connector.PocketConnector, start int, count int, articleList *[]models.ArticleResult, mut *sync.Mutex) error
GetUntaggedArticles retrieves all untagged articles for a given user (by their access token) from Pocket
func MarkArticleWithTag ¶
func MarkArticleWithTag(client connector.PocketConnector, articleID string, tags []string) (bool, error)
MarkArticleWithTag modifies a given Pocket article (by its ID) to give it a specified set of tags
func PerformAuth ¶
func PerformAuth(client connector.PocketConnector, delayMs time.Duration, browserOpenFunc func(string)) (string, error)
PerformAuth performs authentication with Pocket to retrieve an access token for the user
func UnfavouriteArticle ¶
func UnfavouriteArticle(client connector.PocketConnector, articleID string) (bool, error)
UnfavouriteArticle modifies a given Pocket article (by its ID) to remove it as a favourite
Types ¶
This section is empty.