timfanda35 / pocket_to_mail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pocket to mail

Build Status Code Climate Test Coverage

Local

Copy .env.sample to .env, fill it:

API_KEY=POCKET_CONSUMER_KEY
ACCESS_TOKEN=POCKET_USER_ACCESS_TOKEN
MAIL_ADDRESS=GMAIL_EMAIL
MAIL_PASSWORD=GMAIL_PASSWORD

You should go to Pocket Developer API to get API_KEY.

You can use pocket-ruby to get ACCESS_TOKEN.

If your gmail account has set with two-factory, you should go to to get the application password.

Heroku

Go to Heroku Dashboard, in your heroku application setting page, config variables section, add variables with content of .env.

Set Heroku scheduler.

Set job command to rake run

About

License:MIT License


Languages

Language:Ruby 100.0%