From 7d3421315d25160b5dfe0ac3ffff0a0e19037ccb Mon Sep 17 00:00:00 2001 From: Oliver Lazoroski Date: Tue, 27 Feb 2024 16:41:10 +0100 Subject: [PATCH] docs: update cURL examples --- .../docusaurus/docs/api/_common_/broadcast.mdx | 4 +++- .../docusaurus/docs/api/_common_/create-call.mdx | 10 ++++++---- .../docs/api/recording/recording_calls.mdx | 13 ++++++++++--- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx b/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx index 3c7e8f97..03760891 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx @@ -25,7 +25,9 @@ call.stop_broadcasting() ```bash -curl -X POST "https://video.stream-io-api.com/video/call/default/${CALL_ID}/start_broadcasting?api_key=${API_KEY}" -H "Authorization: ${JWT_TOKEN}" -H "stream-auth-type: jwt" +curl -X POST "https://video.stream-io-api.com/video/call/${CALL_TYPE}/${CALL_ID}/start_broadcasting?api_key=${API_KEY}" \ + -H "Authorization: ${JWT_TOKEN}" \ + -H "stream-auth-type: jwt" ``` diff --git a/docusaurus/video/docusaurus/docs/api/_common_/create-call.mdx b/docusaurus/video/docusaurus/docs/api/_common_/create-call.mdx index 4b21eb79..fd2e9726 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/create-call.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/create-call.mdx @@ -68,16 +68,18 @@ response = call.create( ```bash -curl -X POST "https://video.stream-io-api.com/video/call/default/${CALL_ID}?api_key=${API_KEY}" \ +curl -X POST "https://video.stream-io-api.com/video/call/${CALL_TYPE}/${CALL_ID}?api_key=${API_KEY}" \ -H "Content-Type: application/json" \ -H "Authorization: ${JWT_TOKEN}" \ -H "stream-auth-type: jwt" \ -d '{ "data": { "created_by_id": "sacha@getstream.io", - "settings_override": { "audio": { "access_request_enabled": false } } - }, - "members": [ { "role": "speaker", "user_id": "sacha@getstream.io" } ] + "members": [ + { "role": "speaker", "user_id": "sacha@getstream.io" } + ], + "custom": { "color": "blue" } + } }' ``` diff --git a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx index a5dd027e..e2154def 100644 --- a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx @@ -5,6 +5,7 @@ slug: /recording/calls title: Recording calls --- + import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; @@ -43,9 +44,13 @@ call.stop_recording() ```bash -curl -X POST "https://video.stream-io-api.com/video/call/default/${CALL_ID}/start_recording?api_key=${API_KEY}" -H "Authorization: ${JWT_TOKEN}" -H "stream-auth-type: jwt" +curl -X POST "https://video.stream-io-api.com/video/call/${CALL_TYPE}/${CALL_ID}/start_recording?api_key=${API_KEY}" \ + -H "Authorization: ${JWT_TOKEN}" \ + -H "stream-auth-type: jwt" -curl -X POST "https://video.stream-io-api.com/video/call/default/${CALL_ID}/stop_recording?api_key=${API_KEY}" -H "Authorization: ${JWT_TOKEN}" -H "stream-auth-type: jwt" +curl -X POST "https://video.stream-io-api.com/video/call/${CALL_TYPE}/${CALL_ID}/stop_recording?api_key=${API_KEY}" \ + -H "Authorization: ${JWT_TOKEN}" \ + -H "stream-auth-type: jwt" ``` @@ -73,7 +78,9 @@ call.list_recordings() ```bash -curl -X GET "https://video.stream-io-api.com/video/call/default/${CALL_ID}/recordings?api_key=${API_KEY}" -H "Authorization: ${JWT_TOKEN}" -H "stream-auth-type: jwt" +curl -X GET "https://video.stream-io-api.com/video/call/${CALL_TYPE}/${CALL_ID}/recordings?api_key=${API_KEY}" \ + -H "Authorization: ${JWT_TOKEN}" \ + -H "stream-auth-type: jwt" ```