See Pocket and the Pocket API.
See Pocket API: Authentication.
-
Go to your Pocket applications and get a consumer key:
let consumerKey = "1234-abcd1234abcd1234abcd1234"
-
Obtain a request token from Pocket:
let authRequestReq = AuthRequestReq "<consumerKey>" "<redirectUri>" Nothing authRequest authRequestReq
-
Redirect the user to Pocket:
makeRedirect authRequestReq authRequestRsp
-
Receive the callback from Pocket.
-
Convert the request token into an access token:
let authAuthorizeReq = AuthAuthorizeReq "<consumerKey>" "<requestToken>" authAuthorize authAuthorizeReq
See Pocket API: Add.
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
See Pocket API: Modify.
TODO
See Pocket API: Retrieve.
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