Error ALWAYS returns “reason: Invalid client_id or client_secret, error: invalid client”
I’ve successfully implemented getting access and refresh tokens but now I can’t revoke the token in code. It WORKS in Postman however. Can someone see where the error is please or tell me what I am missing?
Here are headers and post field parameters in a PHP/cURL implementation (NOT WORKING):
// Assign the http headers
$http_headers_array = array
(
"Content-Type:application/x-www-form-urlencoded",
);
// Assign the post fields parameters
$post_fields_array = array
(
"token" => $_SESSION["zoom_access_token"],
"user" => $zoom_client_id,
"pass" => $zoom_client_secret
// "client_id" => $zoom_client_id,
// "client_secret" => $zoom_client_secret
);
Endpoint: https://zoom.us/oauth/revoke
Tested in Postman and provided the following as the Zoom documentation instructs:
- [header] Content-Type: application/x-www-form-urlencoded
- [param] user: (client_id)
- [param] pass: (client_secret)
- [param] token: (access token)
It WORKS in Postman when I change the parameter names of “user” to “client_id” and “pass” to “client_secret”, but it still does not work IN THE CODE when I change it there…how come? Working screenshot is below.