All links of one day
in a single page.
<Previous day - Next day>

rss_feedDaily RSS Feed
floral_left The Daily Shaarli floral_right
——————————— April 17, 2014 - Thursday 17, April 2014 ———————————
pocket - api -

Compliquées ces api.. je me mets ça de côté pour plus tard car j'ai mis du temps à capter :

http://getpocket.com/developer/docs/authentication

D'abord il faut une consumer_key : voir la doc pour ça, c'est facile (= une api key)

Grâce à cette clé on peut avoir un TOKEN comme ça :

curl -X POST https://getpocket.com/v3/oauth/request --verbose --header 'Content-Type: application/json; charset=UTF8' --header 'X-Accept: application/json' --data '{"consumer_key":"CONSUMER_KEY","redirect_uri":"http://wallabag.org"}'

On utilise ce token pour dire à pocket qu'on autorise l'application

https://getpocket.com/auth/authorize?request_token=TOKEN&redirect_uri=http://wallabag.org

+

curl -X POST https://getpocket.com/v3/oauth/authorize --verbose --header 'Content-Type: application/json; charset=UTF8' --header 'X-Accept: application/json' --data '{"consumer_key":"CONSUMER_KEY","code":"TOKEN"}'

donne un ACCESS_TOKEN

on a enfin l'ACCESS_TOKEN, on peut requeter l'api :

curl -X POST https://getpocket.com/v3/get --verbose --header 'Content-Type: application/json; charset=UTF8' --header 'X-Accept: application/json' --data '{"consumer_key":"CONSUMER_KEY","access_token":"ACCESS_TOKEN"}'

-