Getting 403 on call OAuth token API

Description
url call:
https://zoom.us/oauth/token?grant_type=authorization_code&code=6VzfR5yS8m_H7AYDkARTqaVcKnotkSONA&redirect_uri=https://localhost:44399/
var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(client_id + “:” + client_secret);
Client.DefaultRequestHeaders.Add(“Authorization”, "Basic " + Convert.ToBase64String(plainTextBytes));
HttpResponseMessage response = await Client.PostAsync(url, null);
but response.StatusCode = Forbidden 403
@tommy could you help me?
@Michael_Purnell could you help me?

1 Like

please help me please

Hey @tranvuong1803,

Are you following the OAuth guide here:

https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom

What is the value of plainTextBytes?

Thanks,
Tommy

t resolve this issue, my fault, i fotgot add contenttype: application/json to header

1 Like

Happy to hear you got it working! :slight_smile:

Thanks,
Tommy