weaving-the-web / own-your-pocket-data
This package is abandoned and no longer maintained.
No replacement package was suggested.
Command-line application to retrieve a user's pocket data via Pocket API.
dev-master
2015-12-05 09:38 UTC
Requires
- php: >=5.4.0
- ext-curl: *
- guzzlehttp/guzzle: ~4.0
- igorw/config-service-provider: 1.2.*
- silex/silex: 1.2
- symfony/config: @stable
- symfony/console: 2.5.5
- symfony/translation: @stable
- symfony/yaml: @stable
Requires (Dev)
- phpspec/prophecy: ~1.2
- phpunit/phpunit: ~4.3
- symfony/browser-kit: >=2.3,<2.4-dev
- symfony/css-selector: >=2.3,<2.4-dev
- symfony/filesystem: @stable
- symfony/finder: @stable
This package is not auto-updated.
Last update: 2021-01-08 20:51:55 UTC
README
Command-line application to retrieve a user's pocket data via Pocket API
Requirements
- curl
- PHP 5.4
- PHP curl extension
Installation
Install vendor libraries
Download composer with cURL or follow alternative instructions
curl -sS https://getcomposer.org/installer | php
composer install --prefer-dist
Configure the command-line application
Register an application via Pocket Developer Platform
Configure the command-line application by setting the application consumer key
# Declare a Pocket application consumer key as an environment variable
export POCKET_CONSUMER_KEY=my_pocket_application_consumer_key
# Copy the configuration example file
cp Resources/config/config.yml{.dist,}
# Replace "~" with a Pocket application consumer key
sed -i '' "s/~/$POCKET_CONSUMER_KEY/g" Resources/config/config.yml
Run the application authorization server
# Run PHP 5.4 builtin server
php -S 127.0.0.1:8000 -t web web/index.php
Authorize a Pocket application
Access the following URL in a browser: http://127.0.0.1:8000/oauth/request