{"id":17117947,"url":"https://github.com/roperzh/medium-sdk-elixir","last_synced_at":"2025-04-13T04:35:32.639Z","repository":{"id":57522519,"uuid":"74497135","full_name":"roperzh/medium-sdk-elixir","owner":"roperzh","description":"Elixir SDK for the Medium.com API. :globe_with_meridians:","archived":false,"fork":false,"pushed_at":"2018-09-04T03:22:27.000Z","size":42,"stargazers_count":20,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T21:23:17.376Z","etag":null,"topics":["elixir","medium","medium-api","medium-sdk"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roperzh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-22T17:28:35.000Z","updated_at":"2023-09-01T10:57:19.000Z","dependencies_parsed_at":"2022-08-26T20:24:33.433Z","dependency_job_id":null,"html_url":"https://github.com/roperzh/medium-sdk-elixir","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roperzh%2Fmedium-sdk-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roperzh%2Fmedium-sdk-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roperzh%2Fmedium-sdk-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roperzh%2Fmedium-sdk-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roperzh","download_url":"https://codeload.github.com/roperzh/medium-sdk-elixir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665158,"owners_count":21142117,"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":["elixir","medium","medium-api","medium-sdk"],"created_at":"2024-10-14T17:53:02.185Z","updated_at":"2025-04-13T04:35:32.620Z","avatar_url":"https://github.com/roperzh.png","language":"Elixir","readme":"[![Build Status](https://travis-ci.org/roperzh/medium-sdk-elixir.svg?branch=master)](https://travis-ci.org/roperzh/medium-sdk-elixir)\n[![Coverage Status](https://coveralls.io/repos/github/roperzh/medium-sdk-elixir/badge.svg?branch=master)](https://coveralls.io/github/roperzh/medium-sdk-elixir?branch=master)\n[![Hex.pm](https://img.shields.io/hexpm/v/medium.svg)](https://hex.pm/packages/medium)\n\n# Medium SDK for Elixir\n\nAn Elixir SDK for the Medium.com [API](https://github.com/Medium/medium-api-docs).\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed as:\n\n  1. Add `medium` to your list of dependencies in `mix.exs`:\n\n    ```elixir\n    def deps do\n      [{:medium, \"~\u003e 0.2\"}]\n    end\n    ```\n\n  2. Ensure `medium` is started before your application:\n\n    ```elixir\n    def application do\n      [applications: [:medium]]\n    end\n    ```\n\n## Usage\n\nSince all Medium requests must be made with an integration token, you need\nto create a new client associated with that token in order to perform requests:\n\n```elixir\nclient = Medium.client(\"my-access-token\")\n```\n\nWith our client at hand, we can start making requests to the API! :boom:\n\n```elixir\n# We can perform all GET requests described on the API:\nuser = Medium.me(client)\nuser_publications = Medium.publications(client, user.id)\n\n# And we can also publish:\npost = %{\n  title: \"Liverpool FC\",\n  content_format: \"html\",\n  content: \"\u003ch1\u003eLiverpool FC\u003c/h1\u003e\u003cp\u003eYou’ll never walk alone.\u003c/p\u003e\",\n  canonical_url: \"http://jamietalbot.com/posts/liverpool-fc\",\n  tags: [\"football\", \"sport\", \"Liverpool\"],\n  publish_status: \"public\"\n}\n\nresponse = Medium.publish(client, user.id, post)\n```\n\nDon't forget to check the Medium [API](https://github.com/Medium/medium-api-docs)\nor the [documentation](https://hexdocs.pm/medium/api-reference.html)\nto see all available methods.\n\n\n## Roadmap\n\n- [ ] Improve the documentation\n- [ ] Improve the test suite\n- [ ] Remove the Tesla dependency\n\n## Licence\n\nAll the code contained in this repository, unless explicitly stated, is licensed under an MIT license.\n\nA copy of the license can be found in the [LICENSE](LICENSE) file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froperzh%2Fmedium-sdk-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froperzh%2Fmedium-sdk-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froperzh%2Fmedium-sdk-elixir/lists"}