@@ -39,6 +39,10 @@ public class Example {
3939 Basic . setUsername(" YOUR USERNAME" );
4040 Basic . setPassword(" YOUR PASSWORD" );
4141
42+ // Configure OAuth2 access token for authorization: OAuth2
43+ OAuth OAuth2 = (OAuth ) defaultClient. getAuthentication(" OAuth2" );
44+ OAuth2 . setAccessToken(" YOUR ACCESS TOKEN" );
45+
4246 CallsApi apiInstance = new CallsApi (defaultClient);
4347 String accountId = " 9900000" ; // String | Your Bandwidth Account ID.
4448 CreateCall createCall = new CreateCall (); // CreateCall | JSON object containing information to create an outbound call
@@ -69,7 +73,7 @@ public class Example {
6973
7074### Authorization
7175
72- [ Basic] ( ../README.md#Basic )
76+ [ Basic] ( ../README.md#Basic ) , [ OAuth2 ] ( ../README.md#OAuth2 )
7377
7478### HTTP request headers
7579
@@ -117,6 +121,10 @@ public class Example {
117121 Basic . setUsername(" YOUR USERNAME" );
118122 Basic . setPassword(" YOUR PASSWORD" );
119123
124+ // Configure OAuth2 access token for authorization: OAuth2
125+ OAuth OAuth2 = (OAuth ) defaultClient. getAuthentication(" OAuth2" );
126+ OAuth2 . setAccessToken(" YOUR ACCESS TOKEN" );
127+
120128 CallsApi apiInstance = new CallsApi (defaultClient);
121129 String accountId = " 9900000" ; // String | Your Bandwidth Account ID.
122130 String callId = " c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85" ; // String | Programmable Voice API Call ID.
@@ -147,7 +155,7 @@ public class Example {
147155
148156### Authorization
149157
150- [ Basic] ( ../README.md#Basic )
158+ [ Basic] ( ../README.md#Basic ) , [ OAuth2 ] ( ../README.md#OAuth2 )
151159
152160### HTTP request headers
153161
@@ -195,6 +203,10 @@ public class Example {
195203 Basic . setUsername(" YOUR USERNAME" );
196204 Basic . setPassword(" YOUR PASSWORD" );
197205
206+ // Configure OAuth2 access token for authorization: OAuth2
207+ OAuth OAuth2 = (OAuth ) defaultClient. getAuthentication(" OAuth2" );
208+ OAuth2 . setAccessToken(" YOUR ACCESS TOKEN" );
209+
198210 CallsApi apiInstance = new CallsApi (defaultClient);
199211 String accountId = " 9900000" ; // String | Your Bandwidth Account ID.
200212 String to = " %2b19195551234" ; // String | Filter results by the `to` field.
@@ -237,7 +249,7 @@ public class Example {
237249
238250### Authorization
239251
240- [ Basic] ( ../README.md#Basic )
252+ [ Basic] ( ../README.md#Basic ) , [ OAuth2 ] ( ../README.md#OAuth2 )
241253
242254### HTTP request headers
243255
@@ -285,6 +297,10 @@ public class Example {
285297 Basic . setUsername(" YOUR USERNAME" );
286298 Basic . setPassword(" YOUR PASSWORD" );
287299
300+ // Configure OAuth2 access token for authorization: OAuth2
301+ OAuth OAuth2 = (OAuth ) defaultClient. getAuthentication(" OAuth2" );
302+ OAuth2 . setAccessToken(" YOUR ACCESS TOKEN" );
303+
288304 CallsApi apiInstance = new CallsApi (defaultClient);
289305 String accountId = " 9900000" ; // String | Your Bandwidth Account ID.
290306 String callId = " c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85" ; // String | Programmable Voice API Call ID.
@@ -316,7 +332,7 @@ null (empty response body)
316332
317333### Authorization
318334
319- [ Basic] ( ../README.md#Basic )
335+ [ Basic] ( ../README.md#Basic ) , [ OAuth2 ] ( ../README.md#OAuth2 )
320336
321337### HTTP request headers
322338
@@ -365,6 +381,10 @@ public class Example {
365381 Basic . setUsername(" YOUR USERNAME" );
366382 Basic . setPassword(" YOUR PASSWORD" );
367383
384+ // Configure OAuth2 access token for authorization: OAuth2
385+ OAuth OAuth2 = (OAuth ) defaultClient. getAuthentication(" OAuth2" );
386+ OAuth2 . setAccessToken(" YOUR ACCESS TOKEN" );
387+
368388 CallsApi apiInstance = new CallsApi (defaultClient);
369389 String accountId = " 9900000" ; // String | Your Bandwidth Account ID.
370390 String callId = " c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85" ; // String | Programmable Voice API Call ID.
@@ -399,7 +419,7 @@ null (empty response body)
399419
400420### Authorization
401421
402- [Basic](../README.md#Basic)
422+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
403423
404424### HTTP request headers
405425
0 commit comments