Command line interface for Pocket
- [json-c] (https://github.com/json-c/json-c)
- [libcurl] (https://curl.haxx.se/libcurl/)
Compilation has to be done in two steps. First, we must compile the pocket-auth tool:
$ make
Once compiled, the next step is to generate the authentication tokens from Pocket
$ ./pocket-auth
$ Open your browser and go to:
$
$ http://getpocket.com/developer/apps/new
$
$ paste here the autogenerated consumer-key string: 1234-abcde1dc0d5733a4d4b81936e
$
$ Received token: 123456abc-3eb0-cf32-0f92-6ff5b6
$
$ Enter the following URL and confirm the app (Enter when done)
$
$ https://getpocket.com/auth/authorize?request_token=123456abc-3eb0-cf32-0f92-6ff5b6&redirect_uri=https://github.com
$
$ config.h file successfully created. Continue with 'make pocket-cli'
We are ready to go:
$ make pocket-cli
$ echo 'http://github.com' | pocket-cli