Open bladerunnn opened 8 months ago
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'.
req.headers['Content-Type'] = 'application/x-www-form-urlencoded'
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'
.