Popularity
4.1
Growing
Activity
0.0
Stable
2
4
2

Monthly Downloads: 11
Programming language: Haskell
License: MIT License
Tags: Web    
Latest version: v0.3.0

pocket alternatives and similar packages

Based on the "Web" category.
Alternatively, view pocket alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of pocket or a related project?

Add another 'Web' Package

README

Haskell bindings for the Pocket API

See Pocket and the Pocket API.

Usage

Authentication

See Pocket API: Authentication.

Example

  1. Go to your Pocket applications and get a consumer key:
   let consumerKey = "1234-abcd1234abcd1234abcd1234"
  1. Obtain a request token from Pocket:
   let
     authRequestReq =
       AuthRequestReq "<consumerKey>" "<redirectUri>" Nothing
   authRequest authRequestReq
  1. Redirect the user to Pocket:
   makeRedirect authRequestReq authRequestRsp
  1. Receive the callback from Pocket.

  2. Convert the request token into an access token:

   let
     authAuthorizeReq =
       AuthAuthorizeReq "<consumerKey>" "<requestToken>"
   authAuthorize authAuthorizeReq

Add

See Pocket API: Add.

Example

Use your application’s consumer key and a user’s access token to add items to Pocket:

let
  addReq =
    makeAddReq "<consumerKey>" "<accessToken>" "<url>"
add addReq

Modify

See Pocket API: Modify.

TODO

Retrieve

See Pocket API: Retrieve.

Example

Use your application’s consumer key and a user’s access token to retrieve data from Pocket:

let
  getReq =
    (makeGetReq "<consumerKey>" "<accessToken>")
      { getReqCount = Just 1
      , getReqSort = Just "newest"
      }
get getReq