I need to add pages to Pocket from my programm. I have found the page http://getpocket.com/edit which allow to post pages.
Here is my code:
require 'net/http'
uri = URI('http://getpocket.com/edit')
res = Net::HTTP.post_form(uri, 'url' => 'http://www.google.com')
puts res.body
I have run it but the new page didn’t appear in Pocket Queue. Why and how can I fix it ?
Is there any other way to post the page to Pocket programmatically ?
For programmatic access you should use their API. Here’s the documentation: http://getpocket.com/developer/docs/overview
And here’s how you add an item: