Api registered user can host meeting?

Hello,

Api registered users with action(custCreate) can host meeting ? Because when i try to create meeting with api registered user then it create the meeting but i got “Invalid Signature” at time of hosting meeting.

Thanks,
Ritesh

Hey @danish,

Can you provide your request url, params, and headers?

Also check out the zak token when getting a User Token so you can Start Meetings:

Thanks,
Tommy

Hi Tommy,

Thanks for your response. Here is the code that is used to create user

/**
* Create Zoom Api user
*
* @param array $params
* @return object
*/
public static function createUser($params)
{
$data = [
‘action’ => ‘custCreate’,
‘user_info’ => [
“type” => 1,
“email” => $params[‘email’],
“first_name” => $params[‘first_name’],
“last_name” => $params[‘last_name’]
]
];

    return self::send('users', 'POST', $data);
}

After that i have used below code to create Meeting for the above user’s email

/**
* Create zoom meeting
*
* @param string $userEmail
* @param App\Models\Event $event
* @return array
*/
public static function createMeeting($userEmail, $event, $type = 2)
{
$data = [
‘topic’ => $event->name,
‘type’ => $type,
‘timezone’ => ‘UTC’,
‘start_time’ => date(‘c’),
‘duration’ => $event->meeting_duration,
‘settings’ => [
‘host_video’ => true,
‘audio’ => ‘both’,
‘join_before_host’ => true,
‘approval_type’ => 0
]
];

    return self::send('users/' . $userEmail . '/meetings', 'POST', $data);
}

If i use the same code for manually registered user email that we do through zoom.com signup page then it is working but it is not working for the api registered user.

Hey @danish, happy to help :slight_smile:

Can you provide a screenshot of the error?
Is the error coming from the create meeting API, or when you try to start the meeting?

Thanks,
Tommy

Okay again the timeoffset resolve the problem. It is working now after adding 120 sec in generating zoom signature.

Thanks for your support.

1 Like

Hey @danish,

Happy to hear you resolved the issue! :slight_smile:

Thanks,
Tommy