{"id":13509593,"url":"https://github.com/essenciary/pocketex","last_synced_at":"2025-04-12T12:51:48.755Z","repository":{"id":29095690,"uuid":"32624947","full_name":"essenciary/pocketex","owner":"essenciary","description":null,"archived":false,"fork":false,"pushed_at":"2019-12-18T02:03:49.000Z","size":269,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T18:04:38.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/essenciary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-21T08:13:13.000Z","updated_at":"2023-09-01T12:18:06.000Z","dependencies_parsed_at":"2022-08-29T00:30:19.756Z","dependency_job_id":null,"html_url":"https://github.com/essenciary/pocketex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essenciary%2Fpocketex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essenciary%2Fpocketex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essenciary%2Fpocketex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essenciary%2Fpocketex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/essenciary","download_url":"https://codeload.github.com/essenciary/pocketex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571474,"owners_count":21126518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T02:01:10.050Z","updated_at":"2025-04-12T12:51:48.735Z","avatar_url":"https://github.com/essenciary.png","language":"Elixir","funding_links":[],"categories":["Third Party APIs"],"sub_categories":[],"readme":"![pocketex_logo](http://essenciary.com/public/pocketex2_128.png)\n#Pocketex\nPocketex is an Elixir client for the Pocket read later service ([getpocket.com]())\n\n\n##Getting started\n\nGet a consumer key for your app from [http://getpocket.com/developer/apps/new]()\n\nSetup a web page in your app which will serve as the redirect URL where Pocket\nwill POST the auth data at the end of the authorization process.\nLook here for more details: [http://getpocket.com/developer/docs/authentication]()\n\nGet a request token\n`{:ok, response} = Pocketex.Auth.get_request_token(@consumer_key, @redirect_uri)`\n\nRedirect the user to the Pocket oAuth2 page, for authentication and\nauthorization, passing in your received request token and the callback URL.\n\n`request_token = response[:request_token]`\n\n`redirect(external: Pocketex.Auth.autorization_uri(request_token, (WebUi.Router.Helpers.pocket_path(conn, :callback) |\u003e WebUi.Endpoint.url)))`\n\nUpon successful authentication and authorization, you will receive an\naccess token which will be used for further requests.\n\n`{:ok, response} = Pocketex.Auth.authorize(@consumer_key, request_token)`\n\n`access_token = response[\"access_token\"]`\n\nWe're good to go now, let's get the newest 10 unread items:\n\n`response = Pocketex.Item.get(@consumer_key, access_token,\n                            %{count: 10, detail_type: \"complete\", sort: \"newest\",\n                            state: \"unread\", content_type: \"all\"})`\n\nFor additional information, check out the example app (https://github.com/essenciary/pocketex_demo_app)\nor the docs (http://essenciary.github.io/pocketex/doc/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fessenciary%2Fpocketex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fessenciary%2Fpocketex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fessenciary%2Fpocketex/lists"}