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

Documentation inconsistencies regarding Content-Type for authenticate_with_app #94

Open
bladerunnn opened this issue Jan 31, 2024 · 0 comments

Comments

@bladerunnn
Copy link

The podio documentation here: https://developers.podio.com/authentication/app_auth outlines the POST:

HTTP METHOD: POST URL: https://api.podio.com/oauth/token/v2 HEADER: "Content-Type: application/json" BODY: { "grant_type": "app", "app_id": YOUR_PODIO_APP_ID, "app_token": YOUR_PODIO_APP_TOKEN, "client_id": YOUR_CLIENT_ID, "redirect_uri": YOUR_URL, "client_secret": YOUR_CLIENT_SECRET }

However the the podio ruby client found here: https://github.com/podio/podio-rb/blob/master/lib/podio/client.rb#L96 uses req.headers['Content-Type'] = 'application/x-www-form-urlencoded'.

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

1 participant