Medium Has An API?
A primer on how to post articles through Mediums API
Did you know that Medium has an API? I sure didn’t and I’m glad to have found out about it. For those of you who missed it, in my previous article, we journeyed through the process I undertook to build a simple, easy-to-use, and highly customizable markdown editor. So far, this new editor has made it much easier for me to write my blog articles. However, one major piece is missing and that is the ability to publish articles on sites like Medium. Fortunately, Mediums API, which I just recently discovered, will help solve that problem. So, without wasting another valuable moment, let’s take a look a look at how to integrate the markdown editor with Mediums API!
How to Get An Integration Token
Before we can dive into some coding, we need to get an integration token that will grant us access to Medium’s API. To do this, you will need to have a Medium account, but once you have that, click on your profile picture at the bottom of the navigation bar and click the Settings option in the drop-up menu.
After that, click the Integration tokens option in the left side menu (or scroll down to the Integration tokens section).
All you have to do next is enter a description for the token and click the Get integration token button.
If everything worked, you should see a token with your description.
Writing Some Code
New Front-End Features
Now that we have a token, we can begin the fun part of writing some code. We will be building off of what I did in my previous article, so if you need a refresher, go ahead and take a look at that. To recap what happened in that article…