Server to server aouth - unsupported grant type - in PHP

I have made a server to server token request using postman and it worked properly.

When I want to do it using an endpoint of my API, I get the following error.

code used is

Resuelto: cambie

1 Like

@gestionetmultimedia ,

This error does not appear to be related to Zoom API and SDK.
Nonetheless, it seems that it should be query string instead of form params

https://docs.guzzlephp.org/en/stable/quickstart.html#query-string-parameters

I tried it as a chain and the same error still occurs
cambioError

I did it from postman and it works
cambioPostman

I am confused

@gestionetmultimedia ,

To troubleshoot this, I will follow the specs of the documentation for guzzle.

  • Instead of typing in the entire URL /oauth/token?grant_type=account_credentials&accountid with string concatenation, try using the methods provided.
  • Follow single quote for headers, authorization and basic

https://docs.guzzlephp.org/en/stable/quickstart.html#query-string-parameters


error

@gestionetmultimedia ,

account_id is not in forms, it is part of query string in the url

1 Like


error

it worked

thank you