Let invited speakers bypass Events registration and join as panelists.
Deploy Ladill Meet / deploy (push) Successful in 1m30s
Deploy Ladill Meet / deploy (push) Successful in 1m30s
Verify speaker tokens from Events on join, grant panelist role for linked webinars, and point bulk comms links to the attendees page instead of the JSON preview API. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -43,6 +43,31 @@ class EventsClient
|
||||
return (array) ($response['event'] ?? []);
|
||||
}
|
||||
|
||||
/** @return array<string, mixed>|null */
|
||||
public function verifySpeakerInvite(int $eventId, string $ownerRef, string $speakerToken): ?array
|
||||
{
|
||||
try {
|
||||
$response = $this->client()->post("events/{$eventId}/verify-speaker", [
|
||||
'owner_ref' => $ownerRef,
|
||||
'speaker_token' => $speakerToken,
|
||||
]);
|
||||
} catch (ConnectionException) {
|
||||
throw new \RuntimeException('Could not reach Ladill Events.');
|
||||
}
|
||||
|
||||
if ($response->status() === 404) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ($response->failed()) {
|
||||
throw new \RuntimeException('Events service error: '.($response->json('message') ?? $response->body()));
|
||||
}
|
||||
|
||||
$speaker = $response->json('speaker');
|
||||
|
||||
return is_array($speaker) ? $speaker : null;
|
||||
}
|
||||
|
||||
/** @return array<string, mixed>|null */
|
||||
public function verifyRegistration(int $eventId, string $ownerRef, string $badgeCode): ?array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user