diff --git a/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx b/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx index a1a9af25..ad691e90 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx @@ -30,6 +30,16 @@ client.video.list_call_types() client.get_call_type(name= 'livestream') ``` + + + +```go +client.Video().ListCallTypes(ctx) + +// or +client.Video().GetCallType(ctx, "livestream") +``` + @@ -92,6 +102,26 @@ client.video.create_call_type( ``` + + + +```go +client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ + Name: "allhands", + Settings: &CallSettingsRequest{ + Audio: &AudioSettingsRequest{ + MicDefaultOn: PtrTo(true), + DefaultDevice: "speaker", + }, +}, + Grants: &map[string][]string{ + "admin": []string{SEND_AUDIO.String(), SEND_VIDEO.String(), MUTE_USERS.String()}, + "user": []string{SEND_AUDIO.String(), SEND_VIDEO.String()}, + }, +}) + +``` + @@ -142,6 +172,20 @@ client.video.update_call_type(name='allhands', ) ``` + + + +```go +client.Video().UpdateCallType(ctx, "allhands", &UpdateCallTypeRequest{ + Settings: &CallSettingsRequest{ + Audio: &AudioSettingsRequest{ + MicDefaultOn: PtrTo(false), + DefaultDevice: "earpiece", + }, + }, +}) +``` + @@ -189,6 +233,13 @@ client.video.delete_call_type(name= 'allhands') ``` + + + +```go +client.Video().DeleteCallType(ctx, "allhands") +``` +