Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ src/Bandwidth.Standard/Api/TranscriptionsApi.cs
src/Bandwidth.Standard/Client/ApiClient.cs
src/Bandwidth.Standard/Client/ApiException.cs
src/Bandwidth.Standard/Client/ApiResponse.cs
src/Bandwidth.Standard/Client/Auth/OAuthAuthenticator.cs
src/Bandwidth.Standard/Client/Auth/OAuthFlow.cs
src/Bandwidth.Standard/Client/Auth/TokenResponse.cs
src/Bandwidth.Standard/Client/ClientUtils.cs
src/Bandwidth.Standard/Client/Configuration.cs
src/Bandwidth.Standard/Client/ExceptionFactory.cs
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new CallsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -349,3 +351,11 @@ Authentication schemes defined for the API:

- **Type**: HTTP basic authentication

<a id="OAuth2"></a>
### OAuth2

- **Type**: OAuth
- **Flow**: application
- **Authorization URL**:
- **Scopes**: N/A

7 changes: 7 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ servers:
- url: /
security:
- Basic: []
- OAuth2: []
tags:
- name: Messages
- name: Media
Expand Down Expand Up @@ -14800,4 +14801,10 @@ components:
- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
scheme: basic
type: http
OAuth2:
flows:
clientCredentials:
scopes: {}
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
type: oauth2

7 changes: 7 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ info:
version: 1.0.0
security:
- Basic: []
- OAuth2: []
tags:
- name: Messages
- name: Media
Expand Down Expand Up @@ -8427,6 +8428,12 @@ components:


- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
OAuth2:
type: oauth2
flows:
clientCredentials:
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
scopes: {}
callbacks:
inboundCallback:
'{inboundCallbackUrl}':
Expand Down
20 changes: 15 additions & 5 deletions docs/CallsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new CallsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -92,7 +94,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -142,6 +144,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new CallsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -197,7 +201,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -247,6 +251,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new CallsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -314,7 +320,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -364,6 +370,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new CallsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -417,7 +425,7 @@ void (empty response body)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -468,6 +476,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new CallsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -524,7 +534,7 @@ void (empty response body)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down
36 changes: 27 additions & 9 deletions docs/ConferencesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new ConferencesApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -98,7 +100,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -148,6 +150,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new ConferencesApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -203,7 +207,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -253,6 +257,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new ConferencesApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -310,7 +316,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -360,6 +366,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new ConferencesApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -417,7 +425,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -467,6 +475,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new ConferencesApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -522,7 +532,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -572,6 +582,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new ConferencesApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -635,7 +647,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -685,6 +697,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new ConferencesApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -738,7 +752,7 @@ void (empty response body)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -788,6 +802,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new ConferencesApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -844,7 +860,7 @@ void (empty response body)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -894,6 +910,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new ConferencesApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -949,7 +967,7 @@ void (empty response body)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down
12 changes: 9 additions & 3 deletions docs/MFAApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new MFAApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -90,7 +92,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -136,6 +138,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new MFAApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -191,7 +195,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down Expand Up @@ -237,6 +241,8 @@ namespace Example
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: OAuth2
config.AccessToken = "YOUR_ACCESS_TOKEN";

var apiInstance = new MFAApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
Expand Down Expand Up @@ -292,7 +298,7 @@ catch (ApiException e)

### Authorization

[Basic](../README.md#Basic)
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)

### HTTP request headers

Expand Down
Loading
Loading