follow-0.1.0.0: Haskell library to follow content published on any subject.

Safe HaskellNone
LanguageHaskell2010

Follow.Digesters.Pocket

Description

This module contains the definition of a digester which sends all the entries within the directory to Pocket (https://getpocket.com) application.

In order to be able to send the information to Pocket, first the user needs to authorize Follow application. For this reason, this module also exports functions which deal with the authentication process. However, as a user, the most straighforward way to authenticate is to execute:

stack exec follow_pocket_auth

After the process is finished, the previous command will print an access token which needs to be provided to the digest method.

Synopsis

Documentation

requestTokenStep :: (MonadThrow m, MonadHttp m) => m (Text, Text) Source #

First auth step. Asks Pocket for a request token. It returns the token itself and the URL that the user must visit in order to grant access before proceeding to the second step.

accessTokenStep :: (MonadHttp m, MonadThrow m) => Text -> m Text Source #

Second auth step. Once a user has granted permission to Follow, it exchanges a request token for an access token. The access token is what it needs to be used in any other Pocket API call.