Invalid Grant Type for Oauth app using PHP

Hi @alanj @MultiplayerSession thank you so much for debugging this together. Your contributions to the Zoom Developer community are greatly appreciated!

i still get error: {ā€œreasonā€:ā€œInvalid Grantā€,ā€œerrorā€:ā€œinvalid_grantā€}
can somebody help, please ?
@elisa.zoom

well, after some struggle, it worked for me after removing redirect_uri from CURLOPT_POSTFIELDS
Example:

curl_setopt($ch, CURLOPT_POSTFIELDS,
ā€˜grant_type=authorization_codeā€™ .
ā€˜&code=ā€™ . $code .
//----removed this line---- ā€˜&redirect_uri=ā€™ . urlencode(ā€˜http://127.0.0.1:8001/ā€™)
);

1 Like

Happy to hear it worked for you @vasilca.matei.ovidiu

Commenting some keywords for future search: OAuth authorization with PHP.

1 Like