{"action":"created","issue":{"url":"https://api.github.com/repos/wallabag/wallabag/issues/1493","labels_url":"https://api.github.com/repos/wallabag/wallabag/issues/1493/labels{/name}","comments_url":"https://api.github.com/repos/wallabag/wallabag/issues/1493/comments","events_url":"https://api.github.com/repos/wallabag/wallabag/issues/1493/events","html_url":"https://github.com/wallabag/wallabag/pull/1493","id":112353504,"number":1493,"title":"[WIP] 1st draft for Pocket import via API","user":{"login":"nicosomb","id":121870,"avatar_url":"https://avatars.githubusercontent.com/u/121870?v=3","gravatar_id":"","url":"https://api.github.com/users/nicosomb","html_url":"https://github.com/nicosomb","followers_url":"https://api.github.com/users/nicosomb/followers","following_url":"https://api.github.com/users/nicosomb/following{/other_user}","gists_url":"https://api.github.com/users/nicosomb/gists{/gist_id}","starred_url":"https://api.github.com/users/nicosomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicosomb/subscriptions","organizations_url":"https://api.github.com/users/nicosomb/orgs","repos_url":"https://api.github.com/users/nicosomb/repos","events_url":"https://api.github.com/users/nicosomb/events{/privacy}","received_events_url":"https://api.github.com/users/nicosomb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wallabag/wallabag/labels/Tests%20missing","name":"Tests missing","color":"eb6420"},{"url":"https://api.github.com/repos/wallabag/wallabag/labels/Work%20in%20progress","name":"Work in progress","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"j0k3r","id":62333,"avatar_url":"https://avatars.githubusercontent.com/u/62333?v=3","gravatar_id":"","url":"https://api.github.com/users/j0k3r","html_url":"https://github.com/j0k3r","followers_url":"https://api.github.com/users/j0k3r/followers","following_url":"https://api.github.com/users/j0k3r/following{/other_user}","gists_url":"https://api.github.com/users/j0k3r/gists{/gist_id}","starred_url":"https://api.github.com/users/j0k3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j0k3r/subscriptions","organizations_url":"https://api.github.com/users/j0k3r/orgs","repos_url":"https://api.github.com/users/j0k3r/repos","events_url":"https://api.github.com/users/j0k3r/events{/privacy}","received_events_url":"https://api.github.com/users/j0k3r/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-10-20T12:06:25Z","updated_at":"2015-12-27T20:59:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wallabag/wallabag/pulls/1493","html_url":"https://github.com/wallabag/wallabag/pull/1493","diff_url":"https://github.com/wallabag/wallabag/pull/1493.diff","patch_url":"https://github.com/wallabag/wallabag/pull/1493.patch"},"body":"Issue #236\r\n\r\nHow to use the Pocket Import:\r\n* Access to http://localhost:8000/import\r\n* Click on \"Connect to Pocket\"\r\n* Log in to Pocket and authorize the application to access to your account\r\n* Entries are imported. \r\n\r\nTODO \r\n- [x] we should create an interface or an abstract class to define an import\r\n- [x] create an import for each read it later out there (Readability, Pocket, Instapaper) which extends this class\r\n- [x] each import should be a service to put less stuff in the controler\r\n- [ ] [Working with Tagged Services](http://symfony.com/doc/current/components/dependency_injection/tags.html) to list importers in Import::index.html.twig\r\n- [x] write tests that mock each service (wow, big step)\r\n- [ ] ~~new step before importing to select which entries we want to import.~~ Not easily doable in a first time (because Pocket only provides to get all entries, impossible to get entry one per one)\r\n- [ ] manage API responses (errors, etc.)\r\n- [ ] ~~use `since` parameter in Pocket API~~ removed this feature. \r\n\r\nIn fact, entries are created with excerpt, title, preview picture, but not content (Pocket limitation, see below). \r\n\r\nSome readings: \r\n* rate limits: https://getpocket.com/developer/docs/rate-limits\r\n* article view https://getpocket.com/developer/docs/v3/article-view Impossible to get articles content, we need to pay for that. So we need to use graby. And we need to discuss about performance. And maybe use [JMSJobQueueBundle](http://jmsyst.com/bundles/JMSJobQueueBundle/master/installation).\r\n\r\nNeed a first review to see if I'm doing it wrong.  "},"comment":{"url":"https://api.github.com/repos/wallabag/wallabag/issues/comments/167440918","html_url":"https://github.com/wallabag/wallabag/pull/1493#issuecomment-167440918","issue_url":"https://api.github.com/repos/wallabag/wallabag/issues/1493","id":167440918,"user":{"login":"nicosomb","id":121870,"avatar_url":"https://avatars.githubusercontent.com/u/121870?v=3","gravatar_id":"","url":"https://api.github.com/users/nicosomb","html_url":"https://github.com/nicosomb","followers_url":"https://api.github.com/users/nicosomb/followers","following_url":"https://api.github.com/users/nicosomb/following{/other_user}","gists_url":"https://api.github.com/users/nicosomb/gists{/gist_id}","starred_url":"https://api.github.com/users/nicosomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicosomb/subscriptions","organizations_url":"https://api.github.com/users/nicosomb/orgs","repos_url":"https://api.github.com/users/nicosomb/repos","events_url":"https://api.github.com/users/nicosomb/events{/privacy}","received_events_url":"https://api.github.com/users/nicosomb/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T20:59:25Z","updated_at":"2015-12-27T20:59:25Z","body":"OK I will have a look"}}