GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Bandwidth/java-sdk: Bandwidth Java SDK

BranchesTags
Open more actions menu

Latest commit

 

History

535 Commits
535 Commits

Folders and files

NameName
Last commit message
Last commit date
.bandwidth
.bandwidth
 
 
.github
.github
 
 
.openapi-generator
.openapi-generator
 
 
.vscode
.vscode
 
 
api
api
 
 
custom_templates
custom_templates
 
 
docs
docs
 
 
gradle/wrapper
gradle/wrapper
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.gitkeep
.gitkeep
 
 
.openapi-generator-ignore
.openapi-generator-ignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bandwidth.yml
bandwidth.yml
 
 
build.gradle
build.gradle
 
 
build.sbt
build.sbt
 
 
generate-model-tests.sh
generate-model-tests.sh
 
 
generate.sh
generate.sh
 
 
git_push.sh
git_push.sh
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
interview.txt
interview.txt
 
 
openapi-config.yml
openapi-config.yml
 
 
openapitools.json
openapitools.json
 
 
pom.xml
pom.xml
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

bandwidth-sdk

Bandwidth

  • API version: 1.0.0
    • Generator version: 7.27.0

Bandwidth's Communication APIs

For more information, please visit https://dev.bandwidth.com

Automatically generated by the OpenAPI Generator

Requirements

Building the API client library requires:

  1. Java 1.8+
  2. Maven (3.8.3+)/Gradle (7.2+)

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>com.bandwidth.sdk</groupId>
  <artifactId>bandwidth-sdk</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

  repositories {
    mavenCentral()     // Needed if the 'bandwidth-sdk' jar has been published to maven central.
    mavenLocal()       // Needed if the 'bandwidth-sdk' jar has been published to the local maven repo.
  }

  dependencies {
     implementation "com.bandwidth.sdk:bandwidth-sdk:1.0.0"
  }

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/bandwidth-sdk-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

// Import classes:
import com.bandwidth.sdk.ApiClient;
import com.bandwidth.sdk.ApiException;
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) {
    // Configure OAuth2 client credentials
    ApiClient defaultClient = new ApiClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", null);
    

    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
    try {
      CreateCallResponse result = apiInstance.createCall(accountId, createCall);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling CallsApi#createCall");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
CallsApi createCall POST /accounts/{accountId}/calls Create Call
CallsApi getCallState GET /accounts/{accountId}/calls/{callId} Get Call State Information
CallsApi listCalls GET /accounts/{accountId}/calls Get Calls
CallsApi updateCall POST /accounts/{accountId}/calls/{callId} Update Call
CallsApi updateCallBxml PUT /accounts/{accountId}/calls/{callId}/bxml Update Call BXML
ConferencesApi downloadConferenceRecording GET /accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/media Download Conference Recording
ConferencesApi getConference GET /accounts/{accountId}/conferences/{conferenceId} Get Conference Information
ConferencesApi getConferenceMember GET /accounts/{accountId}/conferences/{conferenceId}/members/{memberId} Get Conference Member
ConferencesApi getConferenceRecording GET /accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId} Get Conference Recording Information
ConferencesApi listConferenceRecordings GET /accounts/{accountId}/conferences/{conferenceId}/recordings Get Conference Recordings
ConferencesApi listConferences GET /accounts/{accountId}/conferences Get Conferences
ConferencesApi updateConference POST /accounts/{accountId}/conferences/{conferenceId} Update Conference
ConferencesApi updateConferenceBxml PUT /accounts/{accountId}/conferences/{conferenceId}/bxml Update Conference BXML
ConferencesApi updateConferenceMember PUT /accounts/{accountId}/conferences/{conferenceId}/members/{memberId} Update Conference Member
EndpointsApi createEndpoint POST /accounts/{accountId}/endpoints Create Endpoint
EndpointsApi deleteEndpoint DELETE /accounts/{accountId}/endpoints/{endpointId} Delete Endpoint
EndpointsApi getEndpoint GET /accounts/{accountId}/endpoints/{endpointId} Get Endpoint
EndpointsApi listEndpoints GET /accounts/{accountId}/endpoints List Endpoints
EndpointsApi updateEndpointBxml PUT /accounts/{accountId}/endpoints/{endpointId}/bxml Update Endpoint BXML
MediaApi deleteMedia DELETE /users/{accountId}/media/{mediaId} Delete Media
MediaApi getMedia GET /users/{accountId}/media/{mediaId} Get Media
MediaApi listMedia GET /users/{accountId}/media List Media
MediaApi uploadMedia PUT /users/{accountId}/media/{mediaId} Upload Media
MessagesApi createMessage POST /users/{accountId}/messages Create Message
MessagesApi listMessages GET /users/{accountId}/messages List Messages
MfaApi generateMessagingCode POST /accounts/{accountId}/code/messaging Messaging Authentication Code
MfaApi generateVoiceCode POST /accounts/{accountId}/code/voice Voice Authentication Code
MfaApi verifyCode POST /accounts/{accountId}/code/verify Verify Authentication Code
MultiChannelApi createMultiChannelMessage POST /users/{accountId}/messages/multiChannel Create Multi-Channel Message
PhoneNumberLookupApi createAsyncBulkLookup POST /accounts/{accountId}/phoneNumberLookup/bulk Create Asynchronous Bulk Number Lookup
PhoneNumberLookupApi createSyncLookup POST /accounts/{accountId}/phoneNumberLookup Create Synchronous Number Lookup
PhoneNumberLookupApi getAsyncBulkLookup GET /accounts/{accountId}/phoneNumberLookup/bulk/{requestId} Get Asynchronous Bulk Number Lookup
RecordingsApi deleteRecording DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId} Delete Recording
RecordingsApi deleteRecordingMedia DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media Delete Recording Media
RecordingsApi deleteRecordingTranscription DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription Delete Transcription
RecordingsApi downloadCallRecording GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media Download Recording
RecordingsApi getCallRecording GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId} Get Call Recording
RecordingsApi getRecordingTranscription GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription Get Transcription
RecordingsApi listAccountCallRecordings GET /accounts/{accountId}/recordings Get Call Recordings
RecordingsApi listCallRecordings GET /accounts/{accountId}/calls/{callId}/recordings List Call Recordings
RecordingsApi transcribeCallRecording POST /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription Create Transcription Request
RecordingsApi updateCallRecordingState PUT /accounts/{accountId}/calls/{callId}/recording Update Recording
StatisticsApi getStatistics GET /accounts/{accountId}/statistics Get Account Statistics
TollFreeVerificationApi createWebhookSubscription POST /accounts/{accountId}/tollFreeVerification/webhooks/subscriptions Create Webhook Subscription
TollFreeVerificationApi deleteVerificationRequest DELETE /accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification Delete a Toll-Free Verification Submission
TollFreeVerificationApi deleteWebhookSubscription DELETE /accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id} Delete Webhook Subscription
TollFreeVerificationApi getTollFreeVerificationStatus GET /accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification Get Toll-Free Verification Status
TollFreeVerificationApi listTollFreeUseCases GET /tollFreeVerification/useCases List Toll-Free Use Cases
TollFreeVerificationApi listWebhookSubscriptions GET /accounts/{accountId}/tollFreeVerification/webhooks/subscriptions List Webhook Subscriptions
TollFreeVerificationApi requestTollFreeVerification POST /accounts/{accountId}/tollFreeVerification Request Toll-Free Verification
TollFreeVerificationApi updateTollFreeVerificationRequest PUT /accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification Update Toll-Free Verification Request
TollFreeVerificationApi updateWebhookSubscription PUT /accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id} Update Webhook Subscription
TranscriptionsApi deleteRealTimeTranscription DELETE /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} Delete Real-time Transcription
TranscriptionsApi getRealTimeTranscription GET /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} Get Real-time Transcription
TranscriptionsApi listRealTimeTranscriptions GET /accounts/{accountId}/calls/{callId}/transcriptions List Real-time Transcriptions

Documentation for Models

  • AccountStatistics
  • AdditionalDenialReason
  • Address
  • AnswerCallback
  • AsyncLookupRequest
  • AttestationLevelEnum
  • BlockedWebhook
  • BridgeCompleteCallback
  • BridgeTargetCompleteCallback
  • BrtcError
  • BrtcErrorResponse
  • BrtcErrorSource
  • BrtcLink
  • BusinessEntityTypeEnum
  • BusinessRegistrationTypeEnum
  • CallDirectionEnum
  • CallRecordingMetadata
  • CallState
  • CallStateEnum
  • CallTranscription
  • CallTranscriptionDetectedLanguageEnum
  • CallTranscriptionMetadata
  • CallTranscriptionResponse
  • CallTranscriptionTrackEnum
  • Callback
  • CallbackMethodEnum
  • CardWidthEnum
  • CodeRequest
  • CompletedLookupStatusEnum
  • Conference
  • ConferenceCompletedCallback
  • ConferenceCreatedCallback
  • ConferenceMember
  • ConferenceMemberExitCallback
  • ConferenceMemberJoinCallback
  • ConferenceRecordingAvailableCallback
  • ConferenceRecordingMetadata
  • ConferenceRedirectCallback
  • ConferenceStateEnum
  • Contact
  • CreateAsyncBulkLookupResponse
  • CreateAsyncBulkLookupResponseData
  • CreateCall
  • CreateCallResponse
  • CreateEndpointRequestBase
  • CreateEndpointResponse
  • CreateEndpointResponseData
  • CreateMessageRequestError
  • CreateMultiChannelMessageResponse
  • CreateSyncLookupResponse
  • CreateSyncLookupResponseData
  • CreateWebRtcConnectionRequest
  • DeactivationEventEnum
  • Device
  • DeviceStatusEnum
  • DisconnectCallback
  • Diversion
  • DtmfCallback
  • Endpoint
  • EndpointDirectionEnum
  • EndpointEvent
  • EndpointEventTypeEnum
  • EndpointResponse
  • EndpointStatusEnum
  • EndpointTypeEnum
  • Endpoints
  • ErrorObject
  • ErrorSource
  • FailureWebhook
  • FieldError
  • FileFormatEnum
  • GatherCallback
  • GetAsyncBulkLookupResponse
  • GetAsyncBulkLookupResponseData
  • InProgressLookupStatusEnum
  • InboundCallback
  • InboundCallbackMessage
  • InboundCallbackTypeEnum
  • InitiateCallback
  • LatestMessageDeliveryStatusEnum
  • LineTypeEnum
  • Link
  • LinkSchema
  • LinksObject
  • ListEndpointsResponse
  • ListMessageDirectionEnum
  • ListMessageItem
  • LookupErrorResponse
  • LookupErrorSchema
  • LookupErrorSchemaMeta
  • LookupResult
  • MachineDetectionCompleteCallback
  • MachineDetectionConfiguration
  • MachineDetectionModeEnum
  • MachineDetectionResult
  • Media
  • Message
  • MessageDirectionEnum
  • MessageRequest
  • MessageStatusEnum
  • MessageTypeEnum
  • MessagesList
  • MessagingCodeResponse
  • MessagingRequestError
  • MfaForbiddenRequestError
  • MfaRequestError
  • MfaUnauthorizedRequestError
  • MmsMessageContent
  • MmsMessageContentFile
  • MultiChannelAction
  • MultiChannelActionCalendarEvent
  • MultiChannelChannelListMMSObject
  • MultiChannelChannelListMMSResponseObject
  • MultiChannelChannelListObjectBase
  • MultiChannelChannelListOwnerObject
  • MultiChannelChannelListRBMObject
  • MultiChannelChannelListRBMObjectAllOfContent
  • MultiChannelChannelListRBMResponseObject
  • MultiChannelChannelListRequestObject
  • MultiChannelChannelListResponseObject
  • MultiChannelChannelListSMSObject
  • MultiChannelChannelListSMSResponseObject
  • MultiChannelError
  • MultiChannelMessageChannelEnum
  • MultiChannelMessageContent
  • MultiChannelMessageRequest
  • MultiChannelMessageResponseData
  • OptInWorkflow
  • Page
  • PageInfo
  • PriorityEnum
  • ProductTypeEnum
  • RbmActionBase
  • RbmActionDial
  • RbmActionOpenUrl
  • RbmActionTypeEnum
  • RbmActionViewLocation
  • RbmCardContent
  • RbmCardContentMedia
  • RbmLocationResponse
  • RbmMediaHeightEnum
  • RbmMessageCarouselCard
  • RbmMessageContentFile
  • RbmMessageContentRichCard
  • RbmMessageContentText
  • RbmMessageMedia
  • RbmOpenUrlEnum
  • RbmSession
  • RbmStandaloneCard
  • RbmSuggestionResponse
  • RbmWebViewEnum
  • RecordingAvailableCallback
  • RecordingCompleteCallback
  • RecordingStateEnum
  • RecordingTranscriptionClip
  • RecordingTranscriptionMetadata
  • RecordingTranscriptions
  • RedirectCallback
  • RedirectMethodEnum
  • ReferCallStatusEnum
  • ReferCompleteCallback
  • SipConnectionMetadata
  • SipCredentials
  • SmsMessageContent
  • StandaloneCardOrientationEnum
  • StatusCallback
  • StatusCallbackMessage
  • StatusCallbackTypeEnum
  • StirShaken
  • SyncLookupRequest
  • TelephoneNumber
  • TfvBasicAuthentication
  • TfvCallbackStatusEnum
  • TfvError
  • TfvStatus
  • TfvStatusEnum
  • TfvSubmissionInfo
  • TfvSubmissionWrapper
  • ThumbnailAlignmentEnum
  • TranscribeRecording
  • Transcription
  • TranscriptionAvailableCallback
  • TransferAnswerCallback
  • TransferCompleteCallback
  • TransferDisconnectCallback
  • UpdateCall
  • UpdateCallRecording
  • UpdateConference
  • UpdateConferenceMember
  • VerificationDenialWebhook
  • VerificationRequest
  • VerificationUpdateRequest
  • VerificationWebhook
  • VerifyCodeRequest
  • VerifyCodeResponse
  • VoiceApiError
  • VoiceCodeResponse
  • WebhookSubscription
  • WebhookSubscriptionBasicAuthentication
  • WebhookSubscriptionError
  • WebhookSubscriptionRequestSchema
  • WebhookSubscriptionTypeEnum
  • WebhookSubscriptionsListBody

Documentation for Authorization

Authentication schemes defined for the API:

OAuth2

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes: N/A

Custom Token URL

By default, access tokens are requested from the token URL defined by the API. To use a different token endpoint, call setTokenUrl on the ApiClient before making a request:

ApiClient client = new ApiClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", null);
client.setTokenUrl("https://your-token-endpoint.example.com/oauth2/token");

Pass that client to any API class as usual. Note that:

  • The value must be an absolute URL. Anything else throws an IllegalArgumentException.
  • Any access token already acquired from the previous token URL is discarded, so the next request acquires a new one from the endpoint you set.
  • The client must have been created with credentials (as above). Calling setTokenUrl on a client built without them throws a RuntimeException.

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

[email protected]

About

Bandwidth Java SDK

dev.bandwidth.com

Topics

sdksdlc-enforced

Resources

Readme
License
Activity
Custom properties

Stars

7 stars

Watchers

34 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.