diff --git a/README.md b/README.md
index e83698f9..d586df02 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:
@@ -329,6 +331,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 0c613484..b8b5c1cd 100644
--- a/bandwidth.yml
+++ b/bandwidth.yml
@@ -9,6 +9,7 @@ info:
version: 1.0.0
security:
- Basic: []
+ - OAuth2: []
tags:
- name: Messages
- name: Media
@@ -8371,6 +8372,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 7a18ca86..32b64eb2 100644
--- a/bandwidth/api/phone_number_lookup_api.py
+++ b/bandwidth/api/phone_number_lookup_api.py
@@ -315,7 +315,8 @@ def _create_async_bulk_lookup_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'Basic'
+ 'Basic',
+ 'OAuth2'
]
return self.api_client.param_serialize(
@@ -886,7 +887,8 @@ def _get_async_bulk_lookup_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 a7fd607d..5b9f391a 100644
--- a/bandwidth/configuration.py
+++ b/bandwidth/configuration.py
@@ -115,6 +115,7 @@
"AuthSettings",
{
"Basic": BasicAuthSetting,
+ "OAuth2": OAuth2AuthSetting,
},
total=False,
)
@@ -520,6 +521,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 03ab8819..3d6557eb 100644
--- a/docs/CallsApi.md
+++ b/docs/CallsApi.md
@@ -25,6 +25,7 @@ All calls are initially queued. Your outbound calls will initiated at a specific
### 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
@@ -117,6 +120,7 @@ Retrieve the current state of a specific call. This information is near-realtime
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -141,6 +145,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
@@ -173,7 +179,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -209,6 +215,7 @@ Also, call information is kept for 7 days after the calls are hung up. If you at
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -233,6 +240,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
@@ -277,7 +286,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -310,6 +319,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
@@ -334,6 +344,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
@@ -366,7 +378,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -400,6 +412,7 @@ Interrupts and replaces an active call's BXML document.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -423,6 +436,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
@@ -458,7 +473,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 2564eedf..080f700e 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
@@ -477,6 +492,7 @@ Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -501,6 +517,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
@@ -541,7 +559,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -574,6 +592,7 @@ Update the conference state.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -598,6 +617,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
@@ -630,7 +651,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -663,6 +684,7 @@ Update the conference BXML document.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -686,6 +708,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
@@ -721,7 +745,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -754,6 +778,7 @@ Updates settings for a particular conference member.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -778,6 +803,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
@@ -812,7 +839,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 bd3a8bd6..48af4d9d 100644
--- a/docs/MediaApi.md
+++ b/docs/MediaApi.md
@@ -24,6 +24,7 @@ file with the same name.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -47,6 +48,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
@@ -77,7 +80,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -110,6 +113,7 @@ Downloads a media file you previously uploaded.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -133,6 +137,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 @@ Gets a list of your media files. No query parameters are supported.
### 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
@@ -291,6 +300,7 @@ A list of supported media types can be found [here](https://support.bandwidth.co
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -314,6 +324,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
@@ -350,7 +362,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 da1fe651..b00b495d 100644
--- a/docs/PhoneNumberLookupApi.md
+++ b/docs/PhoneNumberLookupApi.md
@@ -19,6 +19,7 @@ Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 tele
### 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
@@ -102,6 +105,7 @@ Creates a synchronous phone number lookup request. Maximum of 100 telephone numb
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -127,6 +131,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
@@ -241,7 +247,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 e461ef87..48511eba 100644
--- a/docs/RecordingsApi.md
+++ b/docs/RecordingsApi.md
@@ -28,6 +28,7 @@ Note: After the deletion is requested and a `204` is returned, neither the recor
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -51,6 +52,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
@@ -83,7 +86,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -116,6 +119,7 @@ Deletes the specified recording's media.
### 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 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -206,6 +212,7 @@ Note: After the deletion is requested and a `204` is returned, the transcription
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -229,6 +236,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
@@ -261,7 +270,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -294,6 +303,7 @@ Downloads the specified recording.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -317,6 +327,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
@@ -351,7 +363,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -384,6 +396,7 @@ Returns metadata for the specified recording.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -408,6 +421,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
@@ -478,6 +493,7 @@ During a [``](/docs/voice/bxml/transfer) the A-leg transcript will be
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -502,6 +518,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
@@ -536,7 +554,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 @@ empty if no recordings match the specified criteria.
### 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
@@ -634,7 +655,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -668,6 +689,7 @@ that took place during the specified call.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -692,6 +714,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
@@ -724,7 +748,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -759,6 +783,7 @@ less than 4 hours.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -783,6 +808,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
@@ -817,7 +844,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -850,6 +877,7 @@ Pause or resume a recording on an active phone call.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -874,6 +902,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
@@ -906,7 +936,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 d5995ce1..c5ea2e03 100644
--- a/docs/TollFreeVerificationApi.md
+++ b/docs/TollFreeVerificationApi.md
@@ -27,6 +27,7 @@ The returned subscription object will contain an ID that can be used to modify o
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -52,6 +53,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
@@ -84,7 +87,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -117,6 +120,7 @@ Delete a toll-free verification submission for a toll-free number.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -140,6 +144,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
@@ -170,7 +176,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -203,6 +209,7 @@ Delete a webhook subscription by ID.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -226,6 +233,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
@@ -256,7 +265,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 @@ Submission information will be appended to the response if it is available.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -314,6 +324,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
@@ -346,7 +358,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -379,6 +391,7 @@ Lists valid toll-free use cases.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -402,6 +415,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
@@ -428,7 +443,7 @@ This endpoint does not need any parameter.
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -462,6 +477,7 @@ If `basicAuthentication` is defined, the `password` property of that object will
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -486,6 +502,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
@@ -516,7 +534,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -548,6 +566,7 @@ Submit a request for verification of a toll-free phone number.
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -572,6 +591,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
@@ -602,7 +623,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -635,6 +656,7 @@ Submissions are only eligible for resubmission for 7 days within being processed
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -659,6 +681,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
@@ -691,7 +715,7 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -723,6 +747,7 @@ Update an existing webhook subscription (`callbackUrl` and `basicAuthentication`
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -748,6 +773,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
@@ -782,7 +809,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 2a8b05f2..a0d445ac 100644
--- a/docs/TranscriptionsApi.md
+++ b/docs/TranscriptionsApi.md
@@ -21,6 +21,7 @@ Note: After the deletion is requested and a `200` is returned, the transcription
### 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 @@ void (empty response body)
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers
@@ -109,6 +112,7 @@ Retrieve the specified transcription that was created on this call via [startTra
### Example
* Basic Authentication (Basic):
+* OAuth Authentication (OAuth2):
```python
import bandwidth
@@ -133,6 +137,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 @@ List the transcriptions created on this call via [startTranscription](/docs/voic
### 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
@@ -256,7 +265,7 @@ Name | Type | Description | Notes
### Authorization
-[Basic](../README.md#Basic)
+[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
### HTTP request headers