Skip to content

Commit

Permalink
settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaarbonel committed Sep 19, 2024
1 parent ff4b33f commit 1dd6948
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions docusaurus/video/docusaurus/docs/api/call_types/settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,34 @@ call.create(

</TabItem>

<TabItem value="go" label="Golang">

```go
client.Video().CreateCallType(ctx, &CreateCallTypeRequest{
Name: "<call type 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),
},
},
},
})
```

</TabItem>

<TabItem value="curl" label="cURL">

```bash
Expand Down Expand Up @@ -162,6 +190,27 @@ client.video.create_call_type(
)
```

</TabItem>
<TabItem value="go" label="Golang">

```go
client.Video().CreateCallType(ctx, &CreateCallTypeRequest{
Name: "<call type name>",
NotificationSettings: &NotificationSettings{
Enabled: true,
CallNotification: EventNotificationSettings{
Apns: APNS{
Title: "{{ user.display_name }} invites you to a call",
},
Enabled: true,
},
SessionStarted: EventNotificationSettings{
Enabled: false,
},
},
})
```

</TabItem>

<TabItem value="curl" label="cURL">
Expand Down

0 comments on commit 1dd6948

Please sign in to comment.