++++++++++++++++++++++++++++++++++++++++
this part is about exchanging authorization code for an access token:
++++++++++++++++++++++++++++++++++++++++
Nowhere in the docs (link to docs, please click and read what I am referencing) is it stated that the parameters should be sent as part of form/x-www-form-urlencoded
body when fetching an access token. Many APIs use POST request with parameters sent as query strings. Please clarify that your API expects parameters in the url encoded body.
++++++++++++++++++++++++++++++++++++++++
+
+
+
++++++++++++++++++++++++++++++++++++++++
and this part is about refreshing access token:
++++++++++++++++++++++++++++++++++++++++
Also, in the section about refreshing token, there’s this part:
Header:Authorization
string
The word “Basic ” (with a space) concatenated with a base64 encoded string of your client_id, a colon, and your client_secret passed via the Authorization header. Example pseudo code: Basic + base64_encode(CLIENT_ID + ‘:’ + CLIENT_SECRET)
which is not correct. I can refresh a token without this header. I can either send client_id and client_secret encoded in the specified way OR send client_id and client_secret as part of url encoded body; both ways work, and the second one (the non-documented one) is way cleaner IMO.
++++++++++++++++++++++++++++++++++++++++
Thanks for considering this,
Dmitar