Hi Team,
I have designed a website where Clients can hire Experts for their projects. To enhance smooth communication, I have installed Zoom Video SDK, where experts can invite the client for a discussion, and I have used Video SDK in this regard.
Now if want to capture the total minutes consumed by the expert and display the same on their profile or save in the DB.
public function get_access_token()
{
$ch = curl_init('https://api.zoom.us/v2/users');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer '.$this->api_generate_jwt(), 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(['grant_type' => 'urn:ietf:params:oauth:grant-type:jwt-bearer']));
$response = curl_exec($ch);
if (curl_errno($ch)) return ['err' => curl_error($ch)];
curl_close($ch);
If i use this i am getting an error like below:
{“code”:200,“message”:“Video SDK Account does not support this REST API.”}
Zoom Video SDK