actions

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func ConcatTags(tags []string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL