Skip to content
Merged
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: 0 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ jobs:
runs-on: ubuntu-latest
env:
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
BW_USERNAME: ${{ secrets.BW_USERNAME }}
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
BW_CLIENT_ID: ${{ secrets.BW_CLIENT_ID }}
BW_CLIENT_SECRET: ${{ secrets.BW_CLIENT_SECRET }}
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
BW_NUMBER: ${{ secrets.BW_NUMBER }}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@ concurrency:

env:
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
BW_USERNAME: ${{ secrets.BW_USERNAME }}
BW_CLIENT_ID: ${{ secrets.BW_CLIENT_ID }}
BW_CLIENT_SECRET: ${{ secrets.BW_CLIENT_SECRET }}
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
BW_NUMBER: ${{ secrets.BW_NUMBER }}
USER_NUMBER: ${{ secrets.USER_NUMBER }}
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }}
MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }}
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ concurrency:
cancel-in-progress: true

env:
BW_USERNAME: ${{ secrets.BW_USERNAME }}
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
BW_CLIENT_ID: ${{ secrets.BW_CLIENT_ID }}
BW_CLIENT_SECRET: ${{ secrets.BW_CLIENT_SECRET }}
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
USER_NUMBER: ${{ secrets.USER_NUMBER }}
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }}
Expand Down
1 change: 1 addition & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
src/test/

src/main/java/com/bandwidth/sdk/model/MultiChannelChannelListRBMObjectAllOfContent.java
src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
Expand Down
1 change: 0 additions & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ src/main/java/com/bandwidth/sdk/api/TollFreeVerificationApi.java
src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java
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
Expand Down
20 changes: 2 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,17 @@ Please follow the [installation](#installation) instruction and execute the foll
// Import classes:
import com.bandwidth.sdk.ApiClient;
import com.bandwidth.sdk.ApiException;
import com.bandwidth.sdk.Configuration;
import com.bandwidth.sdk.auth.*;
import com.bandwidth.sdk.model.*;
import com.bandwidth.sdk.api.CallsApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure OAuth2 client credentials
ApiClient defaultClient = new ApiClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", null);

// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
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);
// Or create the instance with a your clientId and clientSecret (for OAuth2):
// CallsApi apiInstance = new CallsApi("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", null);

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 @@ -397,11 +386,6 @@ Class | Method | HTTP request | Description


Authentication schemes defined for the API:
<a id="Basic"></a>
### Basic

- **Type**: HTTP basic authentication

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

Expand Down
35 changes: 15 additions & 20 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ info:
servers:
- url: /
security:
- Basic: []
- OAuth2: []
tags:
- name: Messages
Expand Down Expand Up @@ -7066,7 +7065,6 @@ components:
data:
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
status: IN_PROGRESS
results: []
errors: []
lookupInProgressExample:
summary: Numbers Lookup In Progress
Expand Down Expand Up @@ -7241,7 +7239,8 @@ components:
links: []
data: {}
errors:
- type: bad-request
- code: "1234"
type: bad-request
description: Bad Request. Ensure that you have set the requestId as a URL
path parameter.
unauthorizedExample:
Expand All @@ -7253,7 +7252,6 @@ components:
- type: Unauthorized
description: You are not authorized to access this resource.
code: "1"
page: null
forbiddenExample:
summary: Forbidden Error
value:
Expand All @@ -7263,14 +7261,14 @@ components:
- type: Forbidden
description: You do not have permission to access this resource.
code: "2"
page: null
unsupportedMediaTypeExample:
summary: Unsupported Media Type Error
value:
links: []
data: {}
errors:
- type: invalid-content-type
- code: "1234"
type: invalid-content-type
description: Invalid content-type. Ensure that your content-type header
is set to application/json.
notFoundExample:
Expand All @@ -7279,7 +7277,8 @@ components:
links: []
data: {}
errors:
- type: not-found
- code: "1234"
type: not-found
description: RequestId not found. Ensure that the requestId used in the
URL path is valid and maps to a previous request that was submitted.
tooManyRequestsExample:
Expand All @@ -7288,7 +7287,8 @@ components:
links: []
data: {}
errors:
- type: rate-limiting
- code: "1234"
type: rate-limiting
description: Rate limit exceeded. Wait for the time specified in the Retry-After
header before sending another request.
internalServerErrorExample:
Expand Down Expand Up @@ -9734,7 +9734,7 @@ components:
id: 1589228074636lm4k2je7j7jklbn2
owner: "+15554443333"
applicationId: 93de2206-9669-4e07-948d-329f4b722ee2
time: 2024-12-02T20:15:57.278Z
time: 2024-12-02T20:15:57.278201Z
segmentCount: 1
direction: in
to:
Expand Down Expand Up @@ -9762,7 +9762,7 @@ components:
type: string
time:
description: The datetime stamp of the message in ISO 8601
example: 2024-12-02T20:15:57.278Z
example: 2024-12-02T20:15:57.278201Z
format: date-time
type: string
segmentCount:
Expand Down Expand Up @@ -10919,13 +10919,13 @@ components:
message.
properties:
time:
example: 2024-12-02T20:15:57.278Z
example: 2024-12-02T20:15:57.278201Z
format: date-time
type: string
eventTime:
description: "Represents the time at which the message was read, for `message-read`\
\ callbacks."
example: 2024-12-02T20:15:58.278Z
example: 2024-12-02T20:15:58.278205Z
format: date-time
type: string
type:
Expand Down Expand Up @@ -10964,7 +10964,7 @@ components:
description: Represents an inbound callback.
properties:
time:
example: 2024-12-02T20:15:57.278Z
example: 2024-12-02T20:15:57.278201Z
format: date-time
type: string
type:
Expand Down Expand Up @@ -17504,14 +17504,9 @@ components:
- username
type: object
securitySchemes:
Basic:
description: |-
Basic authentication is a simple authentication scheme built into the HTTP protocol. To use it, send your HTTP requests with an `Authorization` header that contains the word `Basic` followed by a space and a Base64-encoded string `username:password`.

- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
scheme: basic
type: http
OAuth2:
description: "OAuth2 client credentials. For information on obtaining credentials,\
\ see [Credentials Management](https://dev.bandwidth.com/docs/account/credentials/management/)."
flows:
clientCredentials:
scopes: {}
Expand Down
Loading
Loading