Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Medium's settings page only creates two strings for credentials #3

Closed
higgins opened this issue Nov 22, 2021 · 8 comments
Closed

Medium's settings page only creates two strings for credentials #3

higgins opened this issue Nov 22, 2021 · 8 comments

Comments

@higgins
Copy link

higgins commented Nov 22, 2021

Hello and thank you for making this action!

Looking to integrate it on a project but when I create Integration tokens at https://medium.com/me/settings, I'm only returned two strings. I assume they are app_id and app_secret or app_secret and access_token.

How do I generate the third required input?

UPDATE:
It actually looks like Medium only returns one value (but they wrap the text with break-word so it looked like two). How do I generate the other 2 required inputs and which corresponds to which?

@maZahaca
Copy link
Member

Hello! Happy to hear that

So, you actually need to generate just two things:

  1. An app (app_id, app_secret) -> https://medium.com/me/applications
  2. Personal access token (access_token) -> https://medium.com/me/settings

This should be listed in README.md file.

@higgins
Copy link
Author

higgins commented Nov 22, 2021

The /me/applications page 403's for me
Screen Shot 2021-11-22 at 3 21 22 PM

Their support team told me:

We don't allow any new integrations with our API.

The Medium API is only available for an integration token for use with third-party writing applications, such as:

    iA Writer
    Ulysses

Kind of a bummer if it means I can't use their SDK :/

@maZahaca
Copy link
Member

Let me check if it works without app_id and app_secret

@maZahaca
Copy link
Member

I've raised a related issue Medium/medium-sdk-nodejs#36

Based on their response, I will amend the action to make it work without app_id, app_secret. It may take some time.

@maZahaca
Copy link
Member

Hey @higgins, I'm planning to replace this SDK with a tiny manual implementation of required methods, will get back soon, when it's done.

Finally, it will be using just a personal access token.

@higgins
Copy link
Author

higgins commented Nov 28, 2021

@maZahaca awesome and thank you! take your time!

@maZahaca
Copy link
Member

@higgins just fixed it in new version https://github.com/InfraWay/post-medium-action/releases/tag/v1.5.0

Please, follow updated docs https://github.com/InfraWay/post-medium-action#readme

@higgins
Copy link
Author

higgins commented Nov 28, 2021

@maZahaca Excellent! Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants