From 1dd6948e64f97054e871469dcdd2fef71cee878b Mon Sep 17 00:00:00 2001 From: sachaarbonel Date: Thu, 19 Sep 2024 15:13:00 +0200 Subject: [PATCH] settings --- .../docs/api/call_types/settings.mdx | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx b/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx index c3e5819a..c2695475 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx @@ -80,6 +80,34 @@ call.create( + + +```go +client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ + Name: "", + Settings: &CallSettingsRequest{ + Screensharing: &ScreensharingSettingsRequest{ + AccessRequestEnabled: PtrTo(false), + Enabled: PtrTo(true), + }, + }, +}) + +// override settings on call level +call.GetOrCreate(ctx, &GetOrCreateCallRequest{ + Data: &CallRequest{ + CreatedByID: PtrTo("john"), + SettingsOverride: &CallSettingsRequest{ + Screensharing: &ScreensharingSettingsRequest{ + Enabled: PtrTo(false), + }, + }, +}, +}) +``` + + + ```bash @@ -162,6 +190,27 @@ client.video.create_call_type( ) ``` + + + +```go +client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ + Name: "", + NotificationSettings: &NotificationSettings{ + Enabled: true, + CallNotification: EventNotificationSettings{ + Apns: APNS{ + Title: "{{ user.display_name }} invites you to a call", + }, + Enabled: true, + }, + SessionStarted: EventNotificationSettings{ + Enabled: false, + }, + }, +}) +``` +