You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly I would like to send you many thanks for sharing this code. I was able to successfully publish a blog post on medium and dev.to!
In order to make this work, I had to change the user-agent of the requests to a non-browser user agent because for Medium, in many calls to their API I received a weird answer that after a lot of debugging it seemed to be Cloudfare page. I fixed this by manually changing the user agent to something like "Postman 7.29.1" in order to make it work for API calls.
I am not sure what is the best approach here - should it be configurable? Should it be hardcoded for something that is a non-browser call?
Kind Regards,
Mário
The text was updated successfully, but these errors were encountered:
Hello Maxime,
Firstly I would like to send you many thanks for sharing this code. I was able to successfully publish a blog post on medium and dev.to!
In order to make this work, I had to change the user-agent of the requests to a non-browser user agent because for Medium, in many calls to their API I received a weird answer that after a lot of debugging it seemed to be Cloudfare page. I fixed this by manually changing the user agent to something like "Postman 7.29.1" in order to make it work for API calls.
I am not sure what is the best approach here - should it be configurable? Should it be hardcoded for something that is a non-browser call?
Kind Regards,
Mário
The text was updated successfully, but these errors were encountered: