@@ -49,7 +49,11 @@ configuration = bandwidth.Configuration(
4949 password = os.environ[" PASSWORD" ]
5050)
5151
52- configuration.access_token = os.environ[" ACCESS_TOKEN" ]
52+ # Configure your client ID and secret for OAuth
53+ configuration = bandwidth.Configuration(
54+ client_id = os.environ[" CLIENT_ID" ],
55+ client_secret = os.environ[" CLIENT_SECRET" ]
56+ )
5357
5458# Enter a context with an instance of the API client
5559with bandwidth.ApiClient(configuration) as api_client:
@@ -143,7 +147,11 @@ configuration = bandwidth.Configuration(
143147 password = os.environ[" PASSWORD" ]
144148)
145149
146- configuration.access_token = os.environ[" ACCESS_TOKEN" ]
150+ # Configure your client ID and secret for OAuth
151+ configuration = bandwidth.Configuration(
152+ client_id = os.environ[" CLIENT_ID" ],
153+ client_secret = os.environ[" CLIENT_SECRET" ]
154+ )
147155
148156# Enter a context with an instance of the API client
149157with bandwidth.ApiClient(configuration) as api_client:
@@ -235,7 +243,11 @@ configuration = bandwidth.Configuration(
235243 password = os.environ[" PASSWORD" ]
236244)
237245
238- configuration.access_token = os.environ[" ACCESS_TOKEN" ]
246+ # Configure your client ID and secret for OAuth
247+ configuration = bandwidth.Configuration(
248+ client_id = os.environ[" CLIENT_ID" ],
249+ client_secret = os.environ[" CLIENT_SECRET" ]
250+ )
239251
240252# Enter a context with an instance of the API client
241253with bandwidth.ApiClient(configuration) as api_client:
@@ -329,7 +341,11 @@ configuration = bandwidth.Configuration(
329341 password = os.environ[" PASSWORD" ]
330342)
331343
332- configuration.access_token = os.environ[" ACCESS_TOKEN" ]
344+ # Configure your client ID and secret for OAuth
345+ configuration = bandwidth.Configuration(
346+ client_id = os.environ[" CLIENT_ID" ],
347+ client_secret = os.environ[" CLIENT_SECRET" ]
348+ )
333349
334350# Enter a context with an instance of the API client
335351with bandwidth.ApiClient(configuration) as api_client:
@@ -423,7 +439,11 @@ configuration = bandwidth.Configuration(
423439 password = os.environ[" PASSWORD" ]
424440)
425441
426- configuration.access_token = os.environ[" ACCESS_TOKEN" ]
442+ # Configure your client ID and secret for OAuth
443+ configuration = bandwidth.Configuration(
444+ client_id = os.environ[" CLIENT_ID" ],
445+ client_secret = os.environ[" CLIENT_SECRET" ]
446+ )
427447
428448# Enter a context with an instance of the API client
429449with bandwidth.ApiClient(configuration) as api_client:
@@ -517,7 +537,11 @@ configuration = bandwidth.Configuration(
517537 password = os.environ[" PASSWORD" ]
518538)
519539
520- configuration.access_token = os.environ[" ACCESS_TOKEN" ]
540+ # Configure your client ID and secret for OAuth
541+ configuration = bandwidth.Configuration(
542+ client_id = os.environ[" CLIENT_ID" ],
543+ client_secret = os.environ[" CLIENT_SECRET" ]
544+ )
521545
522546# Enter a context with an instance of the API client
523547with bandwidth.ApiClient(configuration) as api_client:
@@ -617,7 +641,11 @@ configuration = bandwidth.Configuration(
617641 password = os.environ[" PASSWORD" ]
618642)
619643
620- configuration.access_token = os.environ[" ACCESS_TOKEN" ]
644+ # Configure your client ID and secret for OAuth
645+ configuration = bandwidth.Configuration(
646+ client_id = os.environ[" CLIENT_ID" ],
647+ client_secret = os.environ[" CLIENT_SECRET" ]
648+ )
621649
622650# Enter a context with an instance of the API client
623651with bandwidth.ApiClient(configuration) as api_client:
@@ -708,7 +736,11 @@ configuration = bandwidth.Configuration(
708736 password = os.environ[" PASSWORD" ]
709737)
710738
711- configuration.access_token = os.environ[" ACCESS_TOKEN" ]
739+ # Configure your client ID and secret for OAuth
740+ configuration = bandwidth.Configuration(
741+ client_id = os.environ[" CLIENT_ID" ],
742+ client_secret = os.environ[" CLIENT_SECRET" ]
743+ )
712744
713745# Enter a context with an instance of the API client
714746with bandwidth.ApiClient(configuration) as api_client:
@@ -803,7 +835,11 @@ configuration = bandwidth.Configuration(
803835 password = os.environ[" PASSWORD" ]
804836)
805837
806- configuration.access_token = os.environ[" ACCESS_TOKEN" ]
838+ # Configure your client ID and secret for OAuth
839+ configuration = bandwidth.Configuration(
840+ client_id = os.environ[" CLIENT_ID" ],
841+ client_secret = os.environ[" CLIENT_SECRET" ]
842+ )
807843
808844# Enter a context with an instance of the API client
809845with bandwidth.ApiClient(configuration) as api_client:
0 commit comments