File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -608,7 +608,8 @@ def _create_sync_lookup_serialize(
608608
609609 # authentication setting
610610 _auth_settings : List [str ] = [
611- 'Basic'
611+ 'Basic' ,
612+ 'OAuth2'
612613 ]
613614
614615 return self .api_client .param_serialize (
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ Name | Type | Description | Notes
165165
166166### Authorization
167167
168- [ Basic] ( ../README.md#Basic )
168+ [ Basic] ( ../README.md#Basic ) , [ OAuth2 ] ( ../README.md#OAuth2 )
169169
170170### HTTP request headers
171171
@@ -191,6 +191,7 @@ Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/opera
191191### Example
192192
193193* Basic Authentication (Basic):
194+ * OAuth Authentication (OAuth2):
194195
195196``` python
196197import bandwidth
@@ -215,6 +216,8 @@ configuration = bandwidth.Configuration(
215216 password = os.environ[" PASSWORD" ]
216217)
217218
219+ configuration.access_token = os.environ[" ACCESS_TOKEN" ]
220+
218221# Enter a context with an instance of the API client
219222with bandwidth.ApiClient(configuration) as api_client:
220223 # Create an instance of the API class
You can’t perform that action at this time.
0 commit comments