Skip to content
Closed
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
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java
src/main/java/com/bandwidth/sdk/auth/Authentication.java
src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java
src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java
src/main/java/com/bandwidth/sdk/auth/OAuth.java
src/main/java/com/bandwidth/sdk/auth/OAuthFlow.java
src/main/java/com/bandwidth/sdk/auth/OAuthOkHttpClient.java
src/main/java/com/bandwidth/sdk/auth/RetryingOAuth.java
src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java
src/main/java/com/bandwidth/sdk/model/AccountStatistics.java
src/main/java/com/bandwidth/sdk/model/AdditionalDenialReason.java
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

CallsApi apiInstance = new CallsApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
CreateCall createCall = new CreateCall(); // CreateCall | JSON object containing information to create an outbound call
Expand Down Expand Up @@ -341,6 +345,14 @@ Authentication schemes defined for the API:

- **Type**: HTTP basic authentication

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

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


## Recommendation

Expand Down
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 @@ -14434,4 +14435,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 @@ -8097,6 +8098,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
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ dependencies {
implementation 'io.gsonfire:gson-fire:1.9.0'
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.2'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
Expand Down
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lazy val root = (project in file(".")).
"org.apache.commons" % "commons-lang3" % "3.17.0",
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6",
"org.openapitools" % "jackson-databind-nullable" % "0.2.6",
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.2",
"io.gsonfire" % "gson-fire" % "1.9.0" % "compile",
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
Expand Down
30 changes: 25 additions & 5 deletions docs/CallsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

CallsApi apiInstance = new CallsApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
CreateCall createCall = new CreateCall(); // CreateCall | JSON object containing information to create an outbound call
Expand Down Expand Up @@ -69,7 +73,7 @@ public class Example {

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -117,6 +121,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

CallsApi apiInstance = new CallsApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Call ID.
Expand Down Expand Up @@ -147,7 +155,7 @@ public class Example {

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -195,6 +203,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

CallsApi apiInstance = new CallsApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String to = "%2b19195551234"; // String | Filter results by the `to` field.
Expand Down Expand Up @@ -237,7 +249,7 @@ public class Example {

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -285,6 +297,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

CallsApi apiInstance = new CallsApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Call ID.
Expand Down Expand Up @@ -316,7 +332,7 @@ null (empty response body)

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -365,6 +381,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

CallsApi apiInstance = new CallsApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Call ID.
Expand Down Expand Up @@ -399,7 +419,7 @@ null (empty response body)

### Authorization

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

### HTTP request headers

Expand Down
54 changes: 45 additions & 9 deletions docs/ConferencesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

ConferencesApi apiInstance = new ConferencesApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String conferenceId = "conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9"; // String | Programmable Voice API Conference ID.
Expand Down Expand Up @@ -75,7 +79,7 @@ public class Example {

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -123,6 +127,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

ConferencesApi apiInstance = new ConferencesApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String conferenceId = "conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9"; // String | Programmable Voice API Conference ID.
Expand Down Expand Up @@ -153,7 +161,7 @@ public class Example {

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -201,6 +209,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

ConferencesApi apiInstance = new ConferencesApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String conferenceId = "conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9"; // String | Programmable Voice API Conference ID.
Expand Down Expand Up @@ -233,7 +245,7 @@ public class Example {

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -281,6 +293,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

ConferencesApi apiInstance = new ConferencesApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String conferenceId = "conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9"; // String | Programmable Voice API Conference ID.
Expand Down Expand Up @@ -313,7 +329,7 @@ public class Example {

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -361,6 +377,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

ConferencesApi apiInstance = new ConferencesApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String conferenceId = "conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9"; // String | Programmable Voice API Conference ID.
Expand Down Expand Up @@ -391,7 +411,7 @@ public class Example {

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -439,6 +459,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

ConferencesApi apiInstance = new ConferencesApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String name = "my-custom-name"; // String | Filter results by the `name` field.
Expand Down Expand Up @@ -477,7 +501,7 @@ public class Example {

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -525,6 +549,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

ConferencesApi apiInstance = new ConferencesApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String conferenceId = "conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9"; // String | Programmable Voice API Conference ID.
Expand Down Expand Up @@ -556,7 +584,7 @@ null (empty response body)

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -604,6 +632,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

ConferencesApi apiInstance = new ConferencesApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String conferenceId = "conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9"; // String | Programmable Voice API Conference ID.
Expand Down Expand Up @@ -638,7 +670,7 @@ null (empty response body)

### Authorization

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

### HTTP request headers

Expand Down Expand Up @@ -686,6 +718,10 @@ public class Example {
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");

// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");

ConferencesApi apiInstance = new ConferencesApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String conferenceId = "conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9"; // String | Programmable Voice API Conference ID.
Expand Down Expand Up @@ -719,7 +755,7 @@ null (empty response body)

### Authorization

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

### HTTP request headers

Expand Down
Loading
Loading