From 368d5859b002f9e54d2a8c1df691ed739f52a0c0 Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 28 Oct 2025 14:07:05 +0000 Subject: [PATCH] Generate SDK with OpenAPI Generator Version --- README.md | 10 +++++ bandwidth.yml | 7 +++ bandwidth/api/calls_api.py | 15 ++++--- bandwidth/api/conferences_api.py | 27 +++++++---- bandwidth/api/media_api.py | 12 +++-- bandwidth/api/messages_api.py | 6 ++- bandwidth/api/mfa_api.py | 9 ++-- bandwidth/api/multi_channel_api.py | 3 +- bandwidth/api/phone_number_lookup_api.py | 6 ++- bandwidth/api/recordings_api.py | 30 ++++++++----- bandwidth/api/statistics_api.py | 3 +- bandwidth/api/toll_free_verification_api.py | 27 +++++++---- bandwidth/api/transcriptions_api.py | 9 ++-- bandwidth/configuration.py | 8 ++++ docs/CallsApi.md | 25 ++++++++--- docs/ConferencesApi.md | 45 +++++++++++++++---- docs/MFAApi.md | 15 +++++-- docs/MediaApi.md | 20 +++++++-- docs/MessagesApi.md | 10 ++++- docs/MultiChannelApi.md | 5 ++- docs/PhoneNumberLookupApi.md | 10 ++++- docs/RecordingsApi.md | 50 ++++++++++++++++----- docs/StatisticsApi.md | 5 ++- docs/TollFreeVerificationApi.md | 45 +++++++++++++++---- docs/TranscriptionsApi.md | 15 +++++-- 25 files changed, 319 insertions(+), 98 deletions(-) diff --git a/README.md b/README.md index ff6453f4..b4a28aee 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: @@ -316,6 +318,14 @@ Authentication schemes defined for the API: - **Type**: HTTP basic authentication + +### OAuth2 + +- **Type**: OAuth +- **Flow**: application +- **Authorization URL**: +- **Scopes**: N/A + ## Author diff --git a/bandwidth.yml b/bandwidth.yml index bf2c9ab0..75a24e3a 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -9,6 +9,7 @@ info: version: 1.0.0 security: - Basic: [] + - OAuth2: [] tags: - name: Messages - name: Media @@ -8097,6 +8098,12 @@ components: - Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==` + OAuth2: + type: oauth2 + flows: + clientCredentials: + tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token + scopes: {} callbacks: inboundCallback: '{inboundCallbackUrl}': diff --git a/bandwidth/api/calls_api.py b/bandwidth/api/calls_api.py index f9d754dd..1fe7b9e6 100644 --- a/bandwidth/api/calls_api.py +++ b/bandwidth/api/calls_api.py @@ -338,7 +338,8 @@ def _create_call_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -641,7 +642,8 @@ def _get_call_state_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1048,7 +1050,8 @@ def _list_calls_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1382,7 +1385,8 @@ def _update_call_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1716,7 +1720,8 @@ def _update_call_bxml_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/api/conferences_api.py b/bandwidth/api/conferences_api.py index a3817228..3fde1cbb 100644 --- a/bandwidth/api/conferences_api.py +++ b/bandwidth/api/conferences_api.py @@ -343,7 +343,8 @@ def _download_conference_recording_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -646,7 +647,8 @@ def _get_conference_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -964,7 +966,8 @@ def _get_conference_member_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1282,7 +1285,8 @@ def _get_conference_recording_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1585,7 +1589,8 @@ def _list_conference_recordings_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1958,7 +1963,8 @@ def _list_conferences_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -2289,7 +2295,8 @@ def _update_conference_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -2620,7 +2627,8 @@ def _update_conference_bxml_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -2966,7 +2974,8 @@ def _update_conference_member_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/api/media_api.py b/bandwidth/api/media_api.py index 571a3c8a..525e51fa 100644 --- a/bandwidth/api/media_api.py +++ b/bandwidth/api/media_api.py @@ -322,7 +322,8 @@ def _delete_media_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -626,7 +627,8 @@ def _get_media_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -929,7 +931,8 @@ def _list_media_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1345,7 +1348,8 @@ def _upload_media_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/api/messages_api.py b/bandwidth/api/messages_api.py index 1b89537b..a19d5ae9 100644 --- a/bandwidth/api/messages_api.py +++ b/bandwidth/api/messages_api.py @@ -344,7 +344,8 @@ def _create_message_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1088,7 +1089,8 @@ def _list_messages_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/api/mfa_api.py b/bandwidth/api/mfa_api.py index 5b10228b..92698d4e 100644 --- a/bandwidth/api/mfa_api.py +++ b/bandwidth/api/mfa_api.py @@ -326,7 +326,8 @@ def _generate_messaging_code_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -630,7 +631,8 @@ def _generate_voice_code_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -937,7 +939,8 @@ def _verify_code_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/api/multi_channel_api.py b/bandwidth/api/multi_channel_api.py index 703d1a2e..7f929796 100644 --- a/bandwidth/api/multi_channel_api.py +++ b/bandwidth/api/multi_channel_api.py @@ -338,7 +338,8 @@ def _create_multi_channel_message_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/api/phone_number_lookup_api.py b/bandwidth/api/phone_number_lookup_api.py index 6c5dc0a1..8712e2ea 100644 --- a/bandwidth/api/phone_number_lookup_api.py +++ b/bandwidth/api/phone_number_lookup_api.py @@ -333,7 +333,8 @@ def _create_lookup_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -633,7 +634,8 @@ def _get_lookup_status_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/api/recordings_api.py b/bandwidth/api/recordings_api.py index dfdde315..3702ffdf 100644 --- a/bandwidth/api/recordings_api.py +++ b/bandwidth/api/recordings_api.py @@ -340,7 +340,8 @@ def _delete_recording_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -658,7 +659,8 @@ def _delete_recording_media_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -976,7 +978,8 @@ def _delete_recording_transcription_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1296,7 +1299,8 @@ def _download_call_recording_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1614,7 +1618,8 @@ def _get_call_recording_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1932,7 +1937,8 @@ def _get_recording_transcription_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -2288,7 +2294,8 @@ def _list_account_call_recordings_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -2591,7 +2598,8 @@ def _list_call_recordings_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -2937,7 +2945,8 @@ def _transcribe_call_recording_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -3268,7 +3277,8 @@ def _update_call_recording_state_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/api/statistics_api.py b/bandwidth/api/statistics_api.py index 4abbbc77..de65a491 100644 --- a/bandwidth/api/statistics_api.py +++ b/bandwidth/api/statistics_api.py @@ -306,7 +306,8 @@ def _get_statistics_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/api/toll_free_verification_api.py b/bandwidth/api/toll_free_verification_api.py index bdde9268..5c70fa94 100644 --- a/bandwidth/api/toll_free_verification_api.py +++ b/bandwidth/api/toll_free_verification_api.py @@ -340,7 +340,8 @@ def _create_webhook_subscription_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -643,7 +644,8 @@ def _delete_verification_request_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -946,7 +948,8 @@ def _delete_webhook_subscription_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1249,7 +1252,8 @@ def _get_toll_free_verification_status_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1522,7 +1526,8 @@ def _list_toll_free_use_cases_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -1807,7 +1812,8 @@ def _list_webhook_subscriptions_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -2120,7 +2126,8 @@ def _request_toll_free_verification_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -2448,7 +2455,8 @@ def _update_toll_free_verification_request_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -2779,7 +2787,8 @@ def _update_webhook_subscription_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/api/transcriptions_api.py b/bandwidth/api/transcriptions_api.py index 74f41c32..f90440b3 100644 --- a/bandwidth/api/transcriptions_api.py +++ b/bandwidth/api/transcriptions_api.py @@ -338,7 +338,8 @@ def _delete_real_time_transcription_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -656,7 +657,8 @@ def _get_real_time_transcription_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( @@ -959,7 +961,8 @@ def _list_real_time_transcriptions_serialize( # authentication setting _auth_settings: List[str] = [ - 'Basic' + 'Basic', + 'OAuth2' ] return self.api_client.param_serialize( diff --git a/bandwidth/configuration.py b/bandwidth/configuration.py index f5c38e1c..4f6d8605 100644 --- a/bandwidth/configuration.py +++ b/bandwidth/configuration.py @@ -115,6 +115,7 @@ "AuthSettings", { "Basic": BasicAuthSetting, + "OAuth2": OAuth2AuthSetting, }, total=False, ) @@ -509,6 +510,13 @@ def auth_settings(self)-> AuthSettings: 'key': 'Authorization', 'value': self.get_basic_auth_token() } + if self.access_token is not None: + auth['OAuth2'] = { + 'type': 'oauth2', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token + } return auth def to_debug_report(self) -> str: diff --git a/docs/CallsApi.md b/docs/CallsApi.md index 87e55f62..9920c6ab 100644 --- a/docs/CallsApi.md +++ b/docs/CallsApi.md @@ -21,6 +21,7 @@ Creates an outbound phone call. All calls are initially queued. Your outbound c ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -46,6 +47,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -78,7 +81,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -111,6 +114,7 @@ Retrieve the current state of a specific call. This information is near-realtime ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -135,6 +139,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -167,7 +173,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -200,6 +206,7 @@ Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest. ** ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -224,6 +231,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -268,7 +277,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -301,6 +310,7 @@ Interrupts and redirects a call to a different URL that should return a BXML doc ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -325,6 +335,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -357,7 +369,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -391,6 +403,7 @@ Interrupts and replaces an active call's BXML document. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -414,6 +427,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -449,7 +464,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/ConferencesApi.md b/docs/ConferencesApi.md index 9d965732..045ec141 100644 --- a/docs/ConferencesApi.md +++ b/docs/ConferencesApi.md @@ -25,6 +25,7 @@ Downloads the specified recording file. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -48,6 +49,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -82,7 +85,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -115,6 +118,7 @@ Returns information about the specified conference. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -139,6 +143,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -171,7 +177,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -204,6 +210,7 @@ Returns information about the specified conference member. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -228,6 +235,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -262,7 +271,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -295,6 +304,7 @@ Returns metadata for the specified recording. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -319,6 +329,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -353,7 +365,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -386,6 +398,7 @@ Returns a (potentially empty) list of metadata for the recordings that took plac ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -410,6 +423,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -442,7 +457,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -475,6 +490,7 @@ Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -499,6 +515,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -539,7 +557,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -572,6 +590,7 @@ Update the conference state. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -596,6 +615,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -628,7 +649,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -661,6 +682,7 @@ Update the conference BXML document. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -684,6 +706,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -719,7 +743,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -752,6 +776,7 @@ Updates settings for a particular conference member. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -776,6 +801,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -810,7 +837,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MFAApi.md b/docs/MFAApi.md index 3a981154..5f98b05c 100644 --- a/docs/MFAApi.md +++ b/docs/MFAApi.md @@ -19,6 +19,7 @@ Send an MFA code via text message (SMS). ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -44,6 +45,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -76,7 +79,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -105,6 +108,7 @@ Send an MFA Code via a phone call. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -130,6 +134,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -162,7 +168,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -191,6 +197,7 @@ Verify a previously sent MFA code. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -216,6 +223,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -248,7 +257,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MediaApi.md b/docs/MediaApi.md index 6b25b7ab..d53fc27d 100644 --- a/docs/MediaApi.md +++ b/docs/MediaApi.md @@ -20,6 +20,7 @@ Deletes a media file from Bandwidth API server. Make sure you don't have any app ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -43,6 +44,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -73,7 +76,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -106,6 +109,7 @@ Downloads a media file you previously uploaded. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -129,6 +133,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -161,7 +167,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -194,6 +200,7 @@ Gets a list of your media files. No query parameters are supported. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -218,6 +225,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -250,7 +259,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -283,6 +292,7 @@ Upload a file. You may add headers to the request in order to provide some contr ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -306,6 +316,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -342,7 +354,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MessagesApi.md b/docs/MessagesApi.md index cab2fc2e..3dfbd316 100644 --- a/docs/MessagesApi.md +++ b/docs/MessagesApi.md @@ -18,6 +18,7 @@ Endpoint for sending text messages and picture messages using V2 messaging. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -43,6 +44,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -75,7 +78,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -109,6 +112,7 @@ Returns a list of messages based on query parameters. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -137,6 +141,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -221,7 +227,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MultiChannelApi.md b/docs/MultiChannelApi.md index 0d7713b1..de220ceb 100644 --- a/docs/MultiChannelApi.md +++ b/docs/MultiChannelApi.md @@ -17,6 +17,7 @@ Endpoint for sending Multi-Channel messages. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -42,6 +43,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -74,7 +77,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/PhoneNumberLookupApi.md b/docs/PhoneNumberLookupApi.md index dfc02ede..138de5c3 100644 --- a/docs/PhoneNumberLookupApi.md +++ b/docs/PhoneNumberLookupApi.md @@ -18,6 +18,7 @@ Create a Phone Number Lookup Request. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -43,6 +44,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -75,7 +78,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -106,6 +109,7 @@ Get an existing Phone Number Lookup Request. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -130,6 +134,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -162,7 +168,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/RecordingsApi.md b/docs/RecordingsApi.md index 6e367123..832ee039 100644 --- a/docs/RecordingsApi.md +++ b/docs/RecordingsApi.md @@ -26,6 +26,7 @@ Delete the recording information, media and transcription. Note: After the dele ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -49,6 +50,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -81,7 +84,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -114,6 +117,7 @@ Deletes the specified recording's media. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -137,6 +141,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -169,7 +175,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -202,6 +208,7 @@ Deletes the specified recording's transcription. Note: After the deletion is re ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -225,6 +232,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -257,7 +266,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -290,6 +299,7 @@ Downloads the specified recording. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -313,6 +323,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -347,7 +359,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -380,6 +392,7 @@ Returns metadata for the specified recording. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -404,6 +417,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -438,7 +453,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -471,6 +486,7 @@ Downloads the specified transcription. If the recording was multi-channel, then ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -495,6 +511,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -529,7 +547,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -562,6 +580,7 @@ Returns a list of metadata for the recordings associated with the specified acco ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -586,6 +605,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -624,7 +645,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -657,6 +678,7 @@ Returns a (potentially empty) list of metadata for the recordings that took plac ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -681,6 +703,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -713,7 +737,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -746,6 +770,7 @@ Generate the transcription for a specific recording. Transcription can succeed o ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -770,6 +795,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -804,7 +831,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -837,6 +864,7 @@ Pause or resume a recording on an active phone call. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -861,6 +889,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -893,7 +923,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md index 3df9571f..3b4d9fe2 100644 --- a/docs/StatisticsApi.md +++ b/docs/StatisticsApi.md @@ -17,6 +17,7 @@ Returns details about the current state of the account. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -41,6 +42,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -71,7 +74,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/TollFreeVerificationApi.md b/docs/TollFreeVerificationApi.md index 8305498e..9f1a4b85 100644 --- a/docs/TollFreeVerificationApi.md +++ b/docs/TollFreeVerificationApi.md @@ -25,6 +25,7 @@ Create a new webhook subscription (this webhook will be called for every update ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -50,6 +51,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -82,7 +85,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -115,6 +118,7 @@ Delete a toll-free verification submission for a toll-free number. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -138,6 +142,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -168,7 +174,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -201,6 +207,7 @@ Delete a webhook subscription by ID. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -224,6 +231,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -254,7 +263,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -287,6 +296,7 @@ Gets the verification status for a phone number that is provisioned to your acco ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -311,6 +321,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -343,7 +355,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -376,6 +388,7 @@ Lists valid toll-free use cases. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -399,6 +412,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -425,7 +440,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -458,6 +473,7 @@ Lists all webhook subscriptions that are registered to receive status updates fo ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -482,6 +498,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -512,7 +530,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -544,6 +562,7 @@ Submit a request for verification of a toll-free phone number. ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -568,6 +587,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -598,7 +619,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -630,6 +651,7 @@ Updates a toll-free verification request. Submissions are only eligible for resu ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -654,6 +676,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -686,7 +710,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -718,6 +742,7 @@ Update an existing webhook subscription (`callbackUrl` and `basicAuthentication` ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -743,6 +768,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -777,7 +804,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/TranscriptionsApi.md b/docs/TranscriptionsApi.md index 889dc92b..cbed8fcf 100644 --- a/docs/TranscriptionsApi.md +++ b/docs/TranscriptionsApi.md @@ -19,6 +19,7 @@ Delete the specified transcription that was created on this call via [startTrans ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -42,6 +43,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -74,7 +77,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -107,6 +110,7 @@ Retrieve the specified transcription that was created on this call via [startTra ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -131,6 +135,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -165,7 +171,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -198,6 +204,7 @@ List the transcriptions created on this call via [startTranscription](/docs/voic ### Example * Basic Authentication (Basic): +* OAuth Authentication (OAuth2): ```python import bandwidth @@ -222,6 +229,8 @@ configuration = bandwidth.Configuration( password = os.environ["PASSWORD"] ) +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with bandwidth.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -254,7 +263,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers