bandwidth-sdk 14.0.0 → 14.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/Gemfile.lock +10 -10
 - data/README.md +42 -10
 - data/bandwidth.yml +1113 -0
 - data/coverage/.last_run.json +1 -1
 - data/coverage/.resultset.json +1204 -231
 - data/coverage/index.html +20499 -10053
 - data/custom_templates/README.mustache +6 -6
 - data/docs/AdditionalDenialReason.md +22 -0
 - data/docs/Address.md +30 -0
 - data/docs/Contact.md +24 -0
 - data/docs/Error.md +22 -0
 - data/docs/FailureWebhook.md +28 -0
 - data/docs/InitiateCallback.md +3 -1
 - data/docs/LinksObject.md +24 -0
 - data/docs/OptInWorkflow.md +20 -0
 - data/docs/TelephoneNumber.md +18 -0
 - data/docs/TfvBasicAuthentication.md +20 -0
 - data/docs/{PublishPermissionsEnum.md → TfvCallbackStatusEnum.md} +2 -2
 - data/docs/TfvError.md +22 -0
 - data/docs/TfvStatus.md +32 -0
 - data/docs/{DeviceApiVersionEnum.md → TfvStatusEnum.md} +2 -2
 - data/docs/TfvSubmissionInfo.md +34 -0
 - data/docs/TfvSubmissionWrapper.md +18 -0
 - data/docs/TollFreeVerificationApi.md +585 -0
 - data/docs/VerificationDenialWebhook.md +32 -0
 - data/docs/VerificationRequest.md +36 -0
 - data/docs/VerificationUpdateRequest.md +34 -0
 - data/docs/VerificationWebhook.md +24 -0
 - data/docs/WebhookSubscription.md +30 -0
 - data/docs/WebhookSubscriptionBasicAuthentication.md +20 -0
 - data/docs/WebhookSubscriptionRequestSchema.md +22 -0
 - data/docs/WebhookSubscriptionTypeEnum.md +15 -0
 - data/docs/WebhookSubscriptionsListBody.md +22 -0
 - data/lib/bandwidth-sdk/api/toll_free_verification_api.rb +614 -0
 - data/lib/bandwidth-sdk/configuration.rb +48 -0
 - data/lib/bandwidth-sdk/models/additional_denial_reason.rb +254 -0
 - data/lib/bandwidth-sdk/models/address.rb +501 -0
 - data/lib/bandwidth-sdk/models/contact.rb +393 -0
 - data/lib/bandwidth-sdk/models/error.rb +232 -0
 - data/lib/bandwidth-sdk/models/failure_webhook.rb +304 -0
 - data/lib/bandwidth-sdk/models/initiate_callback.rb +33 -4
 - data/lib/bandwidth-sdk/models/links_object.rb +243 -0
 - data/lib/bandwidth-sdk/models/opt_in_workflow.rb +265 -0
 - data/lib/bandwidth-sdk/models/telephone_number.rb +213 -0
 - data/lib/bandwidth-sdk/models/tfv_basic_authentication.rb +273 -0
 - data/lib/bandwidth-sdk/models/tfv_callback_status_enum.rb +40 -0
 - data/lib/bandwidth-sdk/models/tfv_error.rb +232 -0
 - data/lib/bandwidth-sdk/models/tfv_status.rb +342 -0
 - data/lib/bandwidth-sdk/models/tfv_status_enum.rb +43 -0
 - data/lib/bandwidth-sdk/models/tfv_submission_info.rb +452 -0
 - data/lib/bandwidth-sdk/models/tfv_submission_wrapper.rb +212 -0
 - data/lib/bandwidth-sdk/models/verification_denial_webhook.rb +325 -0
 - data/lib/bandwidth-sdk/models/verification_request.rb +547 -0
 - data/lib/bandwidth-sdk/models/verification_update_request.rb +501 -0
 - data/lib/bandwidth-sdk/models/verification_webhook.rb +303 -0
 - data/lib/bandwidth-sdk/models/webhook_subscription.rb +328 -0
 - data/lib/bandwidth-sdk/models/webhook_subscription_basic_authentication.rb +274 -0
 - data/lib/bandwidth-sdk/models/webhook_subscription_request_schema.rb +306 -0
 - data/lib/bandwidth-sdk/models/webhook_subscription_type_enum.rb +40 -0
 - data/lib/bandwidth-sdk/models/webhook_subscriptions_list_body.rb +242 -0
 - data/lib/bandwidth-sdk/version.rb +1 -1
 - data/lib/bandwidth-sdk.rb +25 -0
 - data/openapi-config.yml +1 -1
 - data/spec/call_utils.rb +2 -2
 - data/spec/smoke/toll_free_verification_api_spec.rb +69 -0
 - data/spec/spec_helper.rb +1 -1
 - data/spec/unit/api/mfa_api_spec.rb +1 -1
 - data/spec/unit/api/toll_free_verification_api_spec.rb +278 -0
 - data/spec/unit/client/api_client_spec.rb +1 -1
 - metadata +91 -61
 - data/docs/CreateParticipantRequest.md +0 -24
 - data/docs/CreateParticipantResponse.md +0 -20
 - data/docs/DisconenctCallback.md +0 -50
 - data/docs/ForbiddenRequest.md +0 -18
 - data/docs/InboundMessageCallback.md +0 -26
 - data/docs/InboundMessageCallbackMessage.md +0 -40
 - data/docs/MessageDeliveredCallback.md +0 -26
 - data/docs/MessageDeliveredCallbackMessage.md +0 -40
 - data/docs/MessageFailedCallback.md +0 -28
 - data/docs/MessageFailedCallbackMessage.md +0 -40
 - data/docs/MessageSendingCallback.md +0 -26
 - data/docs/MessageSendingCallbackMessage.md +0 -40
 - data/docs/Participant.md +0 -30
 - data/docs/ParticipantSubscription.md +0 -20
 - data/docs/ParticipantsApi.md +0 -227
 - data/docs/RequestError.md +0 -20
 - data/docs/Session.md +0 -20
 - data/docs/SessionsApi.md +0 -605
 - data/docs/Subscriptions.md +0 -20
 - data/docs/TranscriptionList.md +0 -18
 - data/docs/TranscriptionMetadata.md +0 -24
 - data/docs/UnauthorizedRequest.md +0 -18
 
    
        data/docs/DisconenctCallback.md
    DELETED
    
    | 
         @@ -1,50 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::DisconenctCallback
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **event_type** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] |
         
     | 
| 
       8 
     | 
    
         
            -
            | **event_time** | **String** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] |
         
     | 
| 
       9 
     | 
    
         
            -
            | **account_id** | **String** | The user account associated with the call. | [optional] |
         
     | 
| 
       10 
     | 
    
         
            -
            | **application_id** | **String** | The id of the application associated with the call. | [optional] |
         
     | 
| 
       11 
     | 
    
         
            -
            | **from** | **String** | The provided identifier of the caller: can be a phone number in E.164 format (e.g. +15555555555) or one of Private, Restricted, Unavailable, or Anonymous. | [optional] |
         
     | 
| 
       12 
     | 
    
         
            -
            | **to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] |
         
     | 
| 
       13 
     | 
    
         
            -
            | **call_id** | **String** | The call id associated with the event. | [optional] |
         
     | 
| 
       14 
     | 
    
         
            -
            | **direction** | [**CallDirectionEnum**](CallDirectionEnum.md) |  | [optional] |
         
     | 
| 
       15 
     | 
    
         
            -
            | **call_url** | **String** | The URL of the call associated with the event. | [optional] |
         
     | 
| 
       16 
     | 
    
         
            -
            | **enqueued_time** | **Time** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] |
         
     | 
| 
       17 
     | 
    
         
            -
            | **start_time** | **Time** | Time the call was started, in ISO 8601 format. | [optional] |
         
     | 
| 
       18 
     | 
    
         
            -
            | **answer_time** | **Time** | Time the call was answered, in ISO 8601 format. | [optional] |
         
     | 
| 
       19 
     | 
    
         
            -
            | **end_time** | **Time** | The time that the recording ended in ISO-8601 format | [optional] |
         
     | 
| 
       20 
     | 
    
         
            -
            | **cause** | **String** | Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. | [optional] |
         
     | 
| 
       21 
     | 
    
         
            -
            | **error_message** | **String** | Text explaining the reason that caused the call to fail in case of errors. | [optional] |
         
     | 
| 
       22 
     | 
    
         
            -
            | **error_id** | **String** | Bandwidth's internal id that references the error event. | [optional] |
         
     | 
| 
       23 
     | 
    
         
            -
            | **tag** | **String** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] |
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
            ## Example
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       28 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
            instance = Bandwidth::DisconenctCallback.new(
         
     | 
| 
       31 
     | 
    
         
            -
              event_type: bridgeComplete,
         
     | 
| 
       32 
     | 
    
         
            -
              event_time: null,
         
     | 
| 
       33 
     | 
    
         
            -
              account_id: 920012,
         
     | 
| 
       34 
     | 
    
         
            -
              application_id: 04e88489-df02-4e34-a0ee-27a91849555f,
         
     | 
| 
       35 
     | 
    
         
            -
              from: +15555555555,
         
     | 
| 
       36 
     | 
    
         
            -
              to: +15555555555,
         
     | 
| 
       37 
     | 
    
         
            -
              call_id: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85,
         
     | 
| 
       38 
     | 
    
         
            -
              direction: null,
         
     | 
| 
       39 
     | 
    
         
            -
              call_url: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85,
         
     | 
| 
       40 
     | 
    
         
            -
              enqueued_time: 2022-06-17T22:20Z,
         
     | 
| 
       41 
     | 
    
         
            -
              start_time: 2022-06-17T22:19:40.375Z,
         
     | 
| 
       42 
     | 
    
         
            -
              answer_time: 2022-06-17T22:20Z,
         
     | 
| 
       43 
     | 
    
         
            -
              end_time: 2022-06-17T22:20Z,
         
     | 
| 
       44 
     | 
    
         
            -
              cause: busy,
         
     | 
| 
       45 
     | 
    
         
            -
              error_message: Call c-2a913f94-6a486f3a-3cae-4034-bcc3-f0c9fa77ca2f is already bridged with another call,
         
     | 
| 
       46 
     | 
    
         
            -
              error_id: 4642074b-7b58-478b-96e4-3a60955c6765,
         
     | 
| 
       47 
     | 
    
         
            -
              tag: exampleTag
         
     | 
| 
       48 
     | 
    
         
            -
            )
         
     | 
| 
       49 
     | 
    
         
            -
            ```
         
     | 
| 
       50 
     | 
    
         
            -
             
     | 
    
        data/docs/ForbiddenRequest.md
    DELETED
    
    | 
         @@ -1,18 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::ForbiddenRequest
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **message** | **String** | The message containing the reason behind the request being forbidden. | [optional] |
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            ## Example
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       12 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
            instance = Bandwidth::ForbiddenRequest.new(
         
     | 
| 
       15 
     | 
    
         
            -
              message: Missing Authentication Token
         
     | 
| 
       16 
     | 
    
         
            -
            )
         
     | 
| 
       17 
     | 
    
         
            -
            ```
         
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
         @@ -1,26 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::InboundMessageCallback
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **time** | **Time** |  |  |
         
     | 
| 
       8 
     | 
    
         
            -
            | **type** | **String** |  |  |
         
     | 
| 
       9 
     | 
    
         
            -
            | **to** | **String** |  |  |
         
     | 
| 
       10 
     | 
    
         
            -
            | **description** | **String** |  |  |
         
     | 
| 
       11 
     | 
    
         
            -
            | **message** | [**InboundMessageCallbackMessage**](InboundMessageCallbackMessage.md) |  |  |
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
            ## Example
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       16 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
            instance = Bandwidth::InboundMessageCallback.new(
         
     | 
| 
       19 
     | 
    
         
            -
              time: 2016-09-14T18:20:16Z,
         
     | 
| 
       20 
     | 
    
         
            -
              type: message-received,
         
     | 
| 
       21 
     | 
    
         
            -
              to: +15552223333,
         
     | 
| 
       22 
     | 
    
         
            -
              description: Incoming message received,
         
     | 
| 
       23 
     | 
    
         
            -
              message: null
         
     | 
| 
       24 
     | 
    
         
            -
            )
         
     | 
| 
       25 
     | 
    
         
            -
            ```
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
         @@ -1,40 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::InboundMessageCallbackMessage
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **id** | **String** |  |  |
         
     | 
| 
       8 
     | 
    
         
            -
            | **owner** | **String** |  |  |
         
     | 
| 
       9 
     | 
    
         
            -
            | **application_id** | **String** |  |  |
         
     | 
| 
       10 
     | 
    
         
            -
            | **time** | **Time** |  |  |
         
     | 
| 
       11 
     | 
    
         
            -
            | **segment_count** | **Integer** |  |  |
         
     | 
| 
       12 
     | 
    
         
            -
            | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) |  |  |
         
     | 
| 
       13 
     | 
    
         
            -
            | **to** | **Array<String>** |  |  |
         
     | 
| 
       14 
     | 
    
         
            -
            | **from** | **String** |  |  |
         
     | 
| 
       15 
     | 
    
         
            -
            | **text** | **String** |  |  |
         
     | 
| 
       16 
     | 
    
         
            -
            | **tag** | **String** |  | [optional] |
         
     | 
| 
       17 
     | 
    
         
            -
            | **media** | **Array<String>** |  | [optional] |
         
     | 
| 
       18 
     | 
    
         
            -
            | **priority** | [**PriorityEnum**](PriorityEnum.md) |  | [optional] |
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
            ## Example
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       23 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
            instance = Bandwidth::InboundMessageCallbackMessage.new(
         
     | 
| 
       26 
     | 
    
         
            -
              id: 1661365814859loidf7mcwd4qacn7,
         
     | 
| 
       27 
     | 
    
         
            -
              owner: +15553332222,
         
     | 
| 
       28 
     | 
    
         
            -
              application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
         
     | 
| 
       29 
     | 
    
         
            -
              time: 2016-09-14T18:20:16Z,
         
     | 
| 
       30 
     | 
    
         
            -
              segment_count: 1,
         
     | 
| 
       31 
     | 
    
         
            -
              direction: null,
         
     | 
| 
       32 
     | 
    
         
            -
              to: ["+15552223333"],
         
     | 
| 
       33 
     | 
    
         
            -
              from: +15553332222,
         
     | 
| 
       34 
     | 
    
         
            -
              text: Hello world,
         
     | 
| 
       35 
     | 
    
         
            -
              tag: custom string,
         
     | 
| 
       36 
     | 
    
         
            -
              media: ["https://dev.bandwidth.com/images/bandwidth-logo.png","https://dev.bandwidth.com/images/github_logo.png"],
         
     | 
| 
       37 
     | 
    
         
            -
              priority: null
         
     | 
| 
       38 
     | 
    
         
            -
            )
         
     | 
| 
       39 
     | 
    
         
            -
            ```
         
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
         @@ -1,26 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::MessageDeliveredCallback
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **time** | **Time** |  |  |
         
     | 
| 
       8 
     | 
    
         
            -
            | **type** | **String** |  |  |
         
     | 
| 
       9 
     | 
    
         
            -
            | **to** | **String** |  |  |
         
     | 
| 
       10 
     | 
    
         
            -
            | **description** | **String** |  |  |
         
     | 
| 
       11 
     | 
    
         
            -
            | **message** | [**MessageDeliveredCallbackMessage**](MessageDeliveredCallbackMessage.md) |  |  |
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
            ## Example
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       16 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
            instance = Bandwidth::MessageDeliveredCallback.new(
         
     | 
| 
       19 
     | 
    
         
            -
              time: 2016-09-14T18:20:16Z,
         
     | 
| 
       20 
     | 
    
         
            -
              type: message-delivered,
         
     | 
| 
       21 
     | 
    
         
            -
              to: +15552223333,
         
     | 
| 
       22 
     | 
    
         
            -
              description: Message delivered to carrier.,
         
     | 
| 
       23 
     | 
    
         
            -
              message: null
         
     | 
| 
       24 
     | 
    
         
            -
            )
         
     | 
| 
       25 
     | 
    
         
            -
            ```
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
         @@ -1,40 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::MessageDeliveredCallbackMessage
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **id** | **String** |  |  |
         
     | 
| 
       8 
     | 
    
         
            -
            | **owner** | **String** |  |  |
         
     | 
| 
       9 
     | 
    
         
            -
            | **application_id** | **String** |  |  |
         
     | 
| 
       10 
     | 
    
         
            -
            | **time** | **Time** |  |  |
         
     | 
| 
       11 
     | 
    
         
            -
            | **segment_count** | **Integer** |  |  |
         
     | 
| 
       12 
     | 
    
         
            -
            | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) |  |  |
         
     | 
| 
       13 
     | 
    
         
            -
            | **to** | **Array<String>** |  |  |
         
     | 
| 
       14 
     | 
    
         
            -
            | **from** | **String** |  |  |
         
     | 
| 
       15 
     | 
    
         
            -
            | **text** | **String** |  |  |
         
     | 
| 
       16 
     | 
    
         
            -
            | **tag** | **String** |  |  |
         
     | 
| 
       17 
     | 
    
         
            -
            | **media** | **Array<String>** |  | [optional] |
         
     | 
| 
       18 
     | 
    
         
            -
            | **priority** | [**PriorityEnum**](PriorityEnum.md) |  | [optional] |
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
            ## Example
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       23 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
            instance = Bandwidth::MessageDeliveredCallbackMessage.new(
         
     | 
| 
       26 
     | 
    
         
            -
              id: 1661365814859loidf7mcwd4qacn7,
         
     | 
| 
       27 
     | 
    
         
            -
              owner: +15553332222,
         
     | 
| 
       28 
     | 
    
         
            -
              application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
         
     | 
| 
       29 
     | 
    
         
            -
              time: 2016-09-14T18:20:16Z,
         
     | 
| 
       30 
     | 
    
         
            -
              segment_count: 1,
         
     | 
| 
       31 
     | 
    
         
            -
              direction: null,
         
     | 
| 
       32 
     | 
    
         
            -
              to: ["+15552223333"],
         
     | 
| 
       33 
     | 
    
         
            -
              from: +15553332222,
         
     | 
| 
       34 
     | 
    
         
            -
              text: Hello world,
         
     | 
| 
       35 
     | 
    
         
            -
              tag: custom string,
         
     | 
| 
       36 
     | 
    
         
            -
              media: ["https://dev.bandwidth.com/images/bandwidth-logo.png","https://dev.bandwidth.com/images/github_logo.png"],
         
     | 
| 
       37 
     | 
    
         
            -
              priority: null
         
     | 
| 
       38 
     | 
    
         
            -
            )
         
     | 
| 
       39 
     | 
    
         
            -
            ```
         
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
         @@ -1,28 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::MessageFailedCallback
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **time** | **Time** |  |  |
         
     | 
| 
       8 
     | 
    
         
            -
            | **type** | **String** |  |  |
         
     | 
| 
       9 
     | 
    
         
            -
            | **to** | **String** |  |  |
         
     | 
| 
       10 
     | 
    
         
            -
            | **description** | **String** |  |  |
         
     | 
| 
       11 
     | 
    
         
            -
            | **message** | [**MessageFailedCallbackMessage**](MessageFailedCallbackMessage.md) |  |  |
         
     | 
| 
       12 
     | 
    
         
            -
            | **error_code** | **Integer** |  |  |
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
            ## Example
         
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       17 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
            instance = Bandwidth::MessageFailedCallback.new(
         
     | 
| 
       20 
     | 
    
         
            -
              time: 2016-09-14T18:20:16Z,
         
     | 
| 
       21 
     | 
    
         
            -
              type: message-failed,
         
     | 
| 
       22 
     | 
    
         
            -
              to: +15552223333,
         
     | 
| 
       23 
     | 
    
         
            -
              description: rejected-unallocated-from-number,
         
     | 
| 
       24 
     | 
    
         
            -
              message: null,
         
     | 
| 
       25 
     | 
    
         
            -
              error_code: 9902
         
     | 
| 
       26 
     | 
    
         
            -
            )
         
     | 
| 
       27 
     | 
    
         
            -
            ```
         
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
         @@ -1,40 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::MessageFailedCallbackMessage
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **id** | **String** |  |  |
         
     | 
| 
       8 
     | 
    
         
            -
            | **owner** | **String** |  |  |
         
     | 
| 
       9 
     | 
    
         
            -
            | **application_id** | **String** |  |  |
         
     | 
| 
       10 
     | 
    
         
            -
            | **time** | **Time** |  |  |
         
     | 
| 
       11 
     | 
    
         
            -
            | **segment_count** | **Integer** |  |  |
         
     | 
| 
       12 
     | 
    
         
            -
            | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) |  |  |
         
     | 
| 
       13 
     | 
    
         
            -
            | **to** | **Array<String>** |  |  |
         
     | 
| 
       14 
     | 
    
         
            -
            | **from** | **String** |  |  |
         
     | 
| 
       15 
     | 
    
         
            -
            | **text** | **String** |  |  |
         
     | 
| 
       16 
     | 
    
         
            -
            | **tag** | **String** |  |  |
         
     | 
| 
       17 
     | 
    
         
            -
            | **media** | **Array<String>** |  | [optional] |
         
     | 
| 
       18 
     | 
    
         
            -
            | **priority** | [**PriorityEnum**](PriorityEnum.md) |  | [optional] |
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
            ## Example
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       23 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
            instance = Bandwidth::MessageFailedCallbackMessage.new(
         
     | 
| 
       26 
     | 
    
         
            -
              id: 1661365814859loidf7mcwd4qacn7,
         
     | 
| 
       27 
     | 
    
         
            -
              owner: +15553332222,
         
     | 
| 
       28 
     | 
    
         
            -
              application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
         
     | 
| 
       29 
     | 
    
         
            -
              time: 2016-09-14T18:20:16Z,
         
     | 
| 
       30 
     | 
    
         
            -
              segment_count: 1,
         
     | 
| 
       31 
     | 
    
         
            -
              direction: null,
         
     | 
| 
       32 
     | 
    
         
            -
              to: ["+15552223333"],
         
     | 
| 
       33 
     | 
    
         
            -
              from: +15553332222,
         
     | 
| 
       34 
     | 
    
         
            -
              text: Hello world,
         
     | 
| 
       35 
     | 
    
         
            -
              tag: custom string,
         
     | 
| 
       36 
     | 
    
         
            -
              media: ["https://dev.bandwidth.com/images/bandwidth-logo.png","https://dev.bandwidth.com/images/github_logo.png"],
         
     | 
| 
       37 
     | 
    
         
            -
              priority: null
         
     | 
| 
       38 
     | 
    
         
            -
            )
         
     | 
| 
       39 
     | 
    
         
            -
            ```
         
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
         @@ -1,26 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::MessageSendingCallback
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **time** | **Time** |  |  |
         
     | 
| 
       8 
     | 
    
         
            -
            | **type** | **String** |  |  |
         
     | 
| 
       9 
     | 
    
         
            -
            | **to** | **String** |  |  |
         
     | 
| 
       10 
     | 
    
         
            -
            | **description** | **String** |  |  |
         
     | 
| 
       11 
     | 
    
         
            -
            | **message** | [**MessageSendingCallbackMessage**](MessageSendingCallbackMessage.md) |  |  |
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
            ## Example
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       16 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
            instance = Bandwidth::MessageSendingCallback.new(
         
     | 
| 
       19 
     | 
    
         
            -
              time: 2016-09-14T18:20:16Z,
         
     | 
| 
       20 
     | 
    
         
            -
              type: message-sending,
         
     | 
| 
       21 
     | 
    
         
            -
              to: +15552223333,
         
     | 
| 
       22 
     | 
    
         
            -
              description: Message is sending to carrier,
         
     | 
| 
       23 
     | 
    
         
            -
              message: null
         
     | 
| 
       24 
     | 
    
         
            -
            )
         
     | 
| 
       25 
     | 
    
         
            -
            ```
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
         @@ -1,40 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::MessageSendingCallbackMessage
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **id** | **String** |  |  |
         
     | 
| 
       8 
     | 
    
         
            -
            | **owner** | **String** |  |  |
         
     | 
| 
       9 
     | 
    
         
            -
            | **application_id** | **String** |  |  |
         
     | 
| 
       10 
     | 
    
         
            -
            | **time** | **Time** |  |  |
         
     | 
| 
       11 
     | 
    
         
            -
            | **segment_count** | **Integer** |  |  |
         
     | 
| 
       12 
     | 
    
         
            -
            | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) |  |  |
         
     | 
| 
       13 
     | 
    
         
            -
            | **to** | **Array<String>** |  |  |
         
     | 
| 
       14 
     | 
    
         
            -
            | **from** | **String** |  |  |
         
     | 
| 
       15 
     | 
    
         
            -
            | **text** | **String** |  |  |
         
     | 
| 
       16 
     | 
    
         
            -
            | **tag** | **String** |  | [optional] |
         
     | 
| 
       17 
     | 
    
         
            -
            | **media** | **Array<String>** |  |  |
         
     | 
| 
       18 
     | 
    
         
            -
            | **priority** | [**PriorityEnum**](PriorityEnum.md) |  | [optional] |
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
            ## Example
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       23 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
            instance = Bandwidth::MessageSendingCallbackMessage.new(
         
     | 
| 
       26 
     | 
    
         
            -
              id: 1661365814859loidf7mcwd4qacn7,
         
     | 
| 
       27 
     | 
    
         
            -
              owner: +15553332222,
         
     | 
| 
       28 
     | 
    
         
            -
              application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
         
     | 
| 
       29 
     | 
    
         
            -
              time: 2016-09-14T18:20:16Z,
         
     | 
| 
       30 
     | 
    
         
            -
              segment_count: 1,
         
     | 
| 
       31 
     | 
    
         
            -
              direction: null,
         
     | 
| 
       32 
     | 
    
         
            -
              to: ["+15552223333"],
         
     | 
| 
       33 
     | 
    
         
            -
              from: +15553332222,
         
     | 
| 
       34 
     | 
    
         
            -
              text: Hello world,
         
     | 
| 
       35 
     | 
    
         
            -
              tag: custom string,
         
     | 
| 
       36 
     | 
    
         
            -
              media: ["https://dev.bandwidth.com/images/bandwidth-logo.png","https://dev.bandwidth.com/images/github_logo.png"],
         
     | 
| 
       37 
     | 
    
         
            -
              priority: null
         
     | 
| 
       38 
     | 
    
         
            -
            )
         
     | 
| 
       39 
     | 
    
         
            -
            ```
         
     | 
| 
       40 
     | 
    
         
            -
             
     | 
    
        data/docs/Participant.md
    DELETED
    
    | 
         @@ -1,30 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::Participant
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **id** | **String** | Unique id of the participant. | [optional][readonly] |
         
     | 
| 
       8 
     | 
    
         
            -
            | **callback_url** | **String** | Full callback url to use for notifications about this participant. | [optional] |
         
     | 
| 
       9 
     | 
    
         
            -
            | **publish_permissions** | [**Array<PublishPermissionsEnum>**](PublishPermissionsEnum.md) | Defines if this participant can publish audio or video. | [optional] |
         
     | 
| 
       10 
     | 
    
         
            -
            | **sessions** | **Array<String>** | List of session ids this participant is associated with  Capped to one  Upon creation of a Participant, returns as an empty array. | [optional][readonly] |
         
     | 
| 
       11 
     | 
    
         
            -
            | **subscriptions** | [**Subscriptions**](Subscriptions.md) |  | [optional] |
         
     | 
| 
       12 
     | 
    
         
            -
            | **tag** | **String** | User defined tag to associate with the participant. | [optional] |
         
     | 
| 
       13 
     | 
    
         
            -
            | **device_api_version** | [**DeviceApiVersionEnum**](DeviceApiVersionEnum.md) |  | [optional][default to 'V3'] |
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            ## Example
         
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       18 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
            instance = Bandwidth::Participant.new(
         
     | 
| 
       21 
     | 
    
         
            -
              id: 320e2af6-13ec-498d-8b51-daba52c37853,
         
     | 
| 
       22 
     | 
    
         
            -
              callback_url: https://example.com/callback,
         
     | 
| 
       23 
     | 
    
         
            -
              publish_permissions: ["VIDEO","AUDIO"],
         
     | 
| 
       24 
     | 
    
         
            -
              sessions: ["75c21163-e110-41bc-bd76-1bb428ec85d5"],
         
     | 
| 
       25 
     | 
    
         
            -
              subscriptions: null,
         
     | 
| 
       26 
     | 
    
         
            -
              tag: participant1,
         
     | 
| 
       27 
     | 
    
         
            -
              device_api_version: null
         
     | 
| 
       28 
     | 
    
         
            -
            )
         
     | 
| 
       29 
     | 
    
         
            -
            ```
         
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
         @@ -1,20 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::ParticipantSubscription
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **participant_id** | **String** | The Participant the subscriber will be subscribed to |  |
         
     | 
| 
       8 
     | 
    
         
            -
            | **stream_aliases** | **Array<String>** | (optional) An array of specific streamAliases owned by the Participant that the subscriber will be subscribed to. Background: A streamAlias is created by a WebRTC client when it connects and declares a name for the related stream. The client is responsible for informing the application of any created streamAliases to enable the application to subscribe to specific streamAliases. Subscribing to a `streamAlias` that does not exist is undefined. If the array is empty all aliases are assumed. | [optional] |
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            ## Example
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       13 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            instance = Bandwidth::ParticipantSubscription.new(
         
     | 
| 
       16 
     | 
    
         
            -
              participant_id: 568749d5-04d5-483d-adf5-deac7dd3d521,
         
     | 
| 
       17 
     | 
    
         
            -
              stream_aliases: ["alias_1","alias_2"]
         
     | 
| 
       18 
     | 
    
         
            -
            )
         
     | 
| 
       19 
     | 
    
         
            -
            ```
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
    
        data/docs/ParticipantsApi.md
    DELETED
    
    | 
         @@ -1,227 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::ParticipantsApi
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            All URIs are relative to *http://localhost*
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Method | HTTP request | Description |
         
     | 
| 
       6 
     | 
    
         
            -
            | ------ | ------------ | ----------- |
         
     | 
| 
       7 
     | 
    
         
            -
            | [**create_participant**](ParticipantsApi.md#create_participant) | **POST** /accounts/{accountId}/participants | Create Participant |
         
     | 
| 
       8 
     | 
    
         
            -
            | [**delete_participant**](ParticipantsApi.md#delete_participant) | **DELETE** /accounts/{accountId}/participants/{participantId} | Delete Participant |
         
     | 
| 
       9 
     | 
    
         
            -
            | [**get_participant**](ParticipantsApi.md#get_participant) | **GET** /accounts/{accountId}/participants/{participantId} | Get Participant |
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            ## create_participant
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
            > <CreateParticipantResponse> create_participant(account_id, opts)
         
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
            Create Participant
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
            Create a new participant under this account. Participants are idempotent, so relevant parameters must be set in this function if desired.
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
            ### Examples
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       23 
     | 
    
         
            -
            require 'time'
         
     | 
| 
       24 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       25 
     | 
    
         
            -
            # setup authorization
         
     | 
| 
       26 
     | 
    
         
            -
            Bandwidth.configure do |config|
         
     | 
| 
       27 
     | 
    
         
            -
              # Configure HTTP basic authorization: Basic
         
     | 
| 
       28 
     | 
    
         
            -
              config.username = 'YOUR USERNAME'
         
     | 
| 
       29 
     | 
    
         
            -
              config.password = 'YOUR PASSWORD'
         
     | 
| 
       30 
     | 
    
         
            -
            end
         
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
            api_instance = Bandwidth::ParticipantsApi.new
         
     | 
| 
       33 
     | 
    
         
            -
            account_id = '9900000' # String | Account ID
         
     | 
| 
       34 
     | 
    
         
            -
            opts = {
         
     | 
| 
       35 
     | 
    
         
            -
              create_participant_request: Bandwidth::CreateParticipantRequest.new # CreateParticipantRequest | Create participant request body.
         
     | 
| 
       36 
     | 
    
         
            -
            }
         
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
            begin
         
     | 
| 
       39 
     | 
    
         
            -
              # Create Participant
         
     | 
| 
       40 
     | 
    
         
            -
              result = api_instance.create_participant(account_id, opts)
         
     | 
| 
       41 
     | 
    
         
            -
              p result
         
     | 
| 
       42 
     | 
    
         
            -
            rescue Bandwidth::ApiError => e
         
     | 
| 
       43 
     | 
    
         
            -
              puts "Error when calling ParticipantsApi->create_participant: #{e}"
         
     | 
| 
       44 
     | 
    
         
            -
            end
         
     | 
| 
       45 
     | 
    
         
            -
            ```
         
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
            #### Using the create_participant_with_http_info variant
         
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
            This returns an Array which contains the response data, status code and headers.
         
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
            > <Array(<CreateParticipantResponse>, Integer, Hash)> create_participant_with_http_info(account_id, opts)
         
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       54 
     | 
    
         
            -
            begin
         
     | 
| 
       55 
     | 
    
         
            -
              # Create Participant
         
     | 
| 
       56 
     | 
    
         
            -
              data, status_code, headers = api_instance.create_participant_with_http_info(account_id, opts)
         
     | 
| 
       57 
     | 
    
         
            -
              p status_code # => 2xx
         
     | 
| 
       58 
     | 
    
         
            -
              p headers # => { ... }
         
     | 
| 
       59 
     | 
    
         
            -
              p data # => <CreateParticipantResponse>
         
     | 
| 
       60 
     | 
    
         
            -
            rescue Bandwidth::ApiError => e
         
     | 
| 
       61 
     | 
    
         
            -
              puts "Error when calling ParticipantsApi->create_participant_with_http_info: #{e}"
         
     | 
| 
       62 
     | 
    
         
            -
            end
         
     | 
| 
       63 
     | 
    
         
            -
            ```
         
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
            ### Parameters
         
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       68 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       69 
     | 
    
         
            -
            | **account_id** | **String** | Account ID |  |
         
     | 
| 
       70 
     | 
    
         
            -
            | **create_participant_request** | [**CreateParticipantRequest**](CreateParticipantRequest.md) | Create participant request body. | [optional] |
         
     | 
| 
       71 
     | 
    
         
            -
             
     | 
| 
       72 
     | 
    
         
            -
            ### Return type
         
     | 
| 
       73 
     | 
    
         
            -
             
     | 
| 
       74 
     | 
    
         
            -
            [**CreateParticipantResponse**](CreateParticipantResponse.md)
         
     | 
| 
       75 
     | 
    
         
            -
             
     | 
| 
       76 
     | 
    
         
            -
            ### Authorization
         
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
            [Basic](../README.md#Basic)
         
     | 
| 
       79 
     | 
    
         
            -
             
     | 
| 
       80 
     | 
    
         
            -
            ### HTTP request headers
         
     | 
| 
       81 
     | 
    
         
            -
             
     | 
| 
       82 
     | 
    
         
            -
            - **Content-Type**: application/json
         
     | 
| 
       83 
     | 
    
         
            -
            - **Accept**: application/json
         
     | 
| 
       84 
     | 
    
         
            -
             
     | 
| 
       85 
     | 
    
         
            -
             
     | 
| 
       86 
     | 
    
         
            -
            ## delete_participant
         
     | 
| 
       87 
     | 
    
         
            -
             
     | 
| 
       88 
     | 
    
         
            -
            > delete_participant(account_id, participant_id)
         
     | 
| 
       89 
     | 
    
         
            -
             
     | 
| 
       90 
     | 
    
         
            -
            Delete Participant
         
     | 
| 
       91 
     | 
    
         
            -
             
     | 
| 
       92 
     | 
    
         
            -
            Delete participant by ID.
         
     | 
| 
       93 
     | 
    
         
            -
             
     | 
| 
       94 
     | 
    
         
            -
            ### Examples
         
     | 
| 
       95 
     | 
    
         
            -
             
     | 
| 
       96 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       97 
     | 
    
         
            -
            require 'time'
         
     | 
| 
       98 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       99 
     | 
    
         
            -
            # setup authorization
         
     | 
| 
       100 
     | 
    
         
            -
            Bandwidth.configure do |config|
         
     | 
| 
       101 
     | 
    
         
            -
              # Configure HTTP basic authorization: Basic
         
     | 
| 
       102 
     | 
    
         
            -
              config.username = 'YOUR USERNAME'
         
     | 
| 
       103 
     | 
    
         
            -
              config.password = 'YOUR PASSWORD'
         
     | 
| 
       104 
     | 
    
         
            -
            end
         
     | 
| 
       105 
     | 
    
         
            -
             
     | 
| 
       106 
     | 
    
         
            -
            api_instance = Bandwidth::ParticipantsApi.new
         
     | 
| 
       107 
     | 
    
         
            -
            account_id = '9900000' # String | Account ID
         
     | 
| 
       108 
     | 
    
         
            -
            participant_id = '62e0ecb9-0b1b-5115-aae4-4f36123d6bb1' # String | Participant ID
         
     | 
| 
       109 
     | 
    
         
            -
             
     | 
| 
       110 
     | 
    
         
            -
            begin
         
     | 
| 
       111 
     | 
    
         
            -
              # Delete Participant
         
     | 
| 
       112 
     | 
    
         
            -
              api_instance.delete_participant(account_id, participant_id)
         
     | 
| 
       113 
     | 
    
         
            -
            rescue Bandwidth::ApiError => e
         
     | 
| 
       114 
     | 
    
         
            -
              puts "Error when calling ParticipantsApi->delete_participant: #{e}"
         
     | 
| 
       115 
     | 
    
         
            -
            end
         
     | 
| 
       116 
     | 
    
         
            -
            ```
         
     | 
| 
       117 
     | 
    
         
            -
             
     | 
| 
       118 
     | 
    
         
            -
            #### Using the delete_participant_with_http_info variant
         
     | 
| 
       119 
     | 
    
         
            -
             
     | 
| 
       120 
     | 
    
         
            -
            This returns an Array which contains the response data (`nil` in this case), status code and headers.
         
     | 
| 
       121 
     | 
    
         
            -
             
     | 
| 
       122 
     | 
    
         
            -
            > <Array(nil, Integer, Hash)> delete_participant_with_http_info(account_id, participant_id)
         
     | 
| 
       123 
     | 
    
         
            -
             
     | 
| 
       124 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       125 
     | 
    
         
            -
            begin
         
     | 
| 
       126 
     | 
    
         
            -
              # Delete Participant
         
     | 
| 
       127 
     | 
    
         
            -
              data, status_code, headers = api_instance.delete_participant_with_http_info(account_id, participant_id)
         
     | 
| 
       128 
     | 
    
         
            -
              p status_code # => 2xx
         
     | 
| 
       129 
     | 
    
         
            -
              p headers # => { ... }
         
     | 
| 
       130 
     | 
    
         
            -
              p data # => nil
         
     | 
| 
       131 
     | 
    
         
            -
            rescue Bandwidth::ApiError => e
         
     | 
| 
       132 
     | 
    
         
            -
              puts "Error when calling ParticipantsApi->delete_participant_with_http_info: #{e}"
         
     | 
| 
       133 
     | 
    
         
            -
            end
         
     | 
| 
       134 
     | 
    
         
            -
            ```
         
     | 
| 
       135 
     | 
    
         
            -
             
     | 
| 
       136 
     | 
    
         
            -
            ### Parameters
         
     | 
| 
       137 
     | 
    
         
            -
             
     | 
| 
       138 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       139 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       140 
     | 
    
         
            -
            | **account_id** | **String** | Account ID |  |
         
     | 
| 
       141 
     | 
    
         
            -
            | **participant_id** | **String** | Participant ID |  |
         
     | 
| 
       142 
     | 
    
         
            -
             
     | 
| 
       143 
     | 
    
         
            -
            ### Return type
         
     | 
| 
       144 
     | 
    
         
            -
             
     | 
| 
       145 
     | 
    
         
            -
            nil (empty response body)
         
     | 
| 
       146 
     | 
    
         
            -
             
     | 
| 
       147 
     | 
    
         
            -
            ### Authorization
         
     | 
| 
       148 
     | 
    
         
            -
             
     | 
| 
       149 
     | 
    
         
            -
            [Basic](../README.md#Basic)
         
     | 
| 
       150 
     | 
    
         
            -
             
     | 
| 
       151 
     | 
    
         
            -
            ### HTTP request headers
         
     | 
| 
       152 
     | 
    
         
            -
             
     | 
| 
       153 
     | 
    
         
            -
            - **Content-Type**: Not defined
         
     | 
| 
       154 
     | 
    
         
            -
            - **Accept**: application/json
         
     | 
| 
       155 
     | 
    
         
            -
             
     | 
| 
       156 
     | 
    
         
            -
             
     | 
| 
       157 
     | 
    
         
            -
            ## get_participant
         
     | 
| 
       158 
     | 
    
         
            -
             
     | 
| 
       159 
     | 
    
         
            -
            > <Participant> get_participant(account_id, participant_id)
         
     | 
| 
       160 
     | 
    
         
            -
             
     | 
| 
       161 
     | 
    
         
            -
            Get Participant
         
     | 
| 
       162 
     | 
    
         
            -
             
     | 
| 
       163 
     | 
    
         
            -
            Get participant by ID.
         
     | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
       165 
     | 
    
         
            -
            ### Examples
         
     | 
| 
       166 
     | 
    
         
            -
             
     | 
| 
       167 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       168 
     | 
    
         
            -
            require 'time'
         
     | 
| 
       169 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       170 
     | 
    
         
            -
            # setup authorization
         
     | 
| 
       171 
     | 
    
         
            -
            Bandwidth.configure do |config|
         
     | 
| 
       172 
     | 
    
         
            -
              # Configure HTTP basic authorization: Basic
         
     | 
| 
       173 
     | 
    
         
            -
              config.username = 'YOUR USERNAME'
         
     | 
| 
       174 
     | 
    
         
            -
              config.password = 'YOUR PASSWORD'
         
     | 
| 
       175 
     | 
    
         
            -
            end
         
     | 
| 
       176 
     | 
    
         
            -
             
     | 
| 
       177 
     | 
    
         
            -
            api_instance = Bandwidth::ParticipantsApi.new
         
     | 
| 
       178 
     | 
    
         
            -
            account_id = '9900000' # String | Account ID
         
     | 
| 
       179 
     | 
    
         
            -
            participant_id = '62e0ecb9-0b1b-5115-aae4-4f36123d6bb1' # String | Participant ID
         
     | 
| 
       180 
     | 
    
         
            -
             
     | 
| 
       181 
     | 
    
         
            -
            begin
         
     | 
| 
       182 
     | 
    
         
            -
              # Get Participant
         
     | 
| 
       183 
     | 
    
         
            -
              result = api_instance.get_participant(account_id, participant_id)
         
     | 
| 
       184 
     | 
    
         
            -
              p result
         
     | 
| 
       185 
     | 
    
         
            -
            rescue Bandwidth::ApiError => e
         
     | 
| 
       186 
     | 
    
         
            -
              puts "Error when calling ParticipantsApi->get_participant: #{e}"
         
     | 
| 
       187 
     | 
    
         
            -
            end
         
     | 
| 
       188 
     | 
    
         
            -
            ```
         
     | 
| 
       189 
     | 
    
         
            -
             
     | 
| 
       190 
     | 
    
         
            -
            #### Using the get_participant_with_http_info variant
         
     | 
| 
       191 
     | 
    
         
            -
             
     | 
| 
       192 
     | 
    
         
            -
            This returns an Array which contains the response data, status code and headers.
         
     | 
| 
       193 
     | 
    
         
            -
             
     | 
| 
       194 
     | 
    
         
            -
            > <Array(<Participant>, Integer, Hash)> get_participant_with_http_info(account_id, participant_id)
         
     | 
| 
       195 
     | 
    
         
            -
             
     | 
| 
       196 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       197 
     | 
    
         
            -
            begin
         
     | 
| 
       198 
     | 
    
         
            -
              # Get Participant
         
     | 
| 
       199 
     | 
    
         
            -
              data, status_code, headers = api_instance.get_participant_with_http_info(account_id, participant_id)
         
     | 
| 
       200 
     | 
    
         
            -
              p status_code # => 2xx
         
     | 
| 
       201 
     | 
    
         
            -
              p headers # => { ... }
         
     | 
| 
       202 
     | 
    
         
            -
              p data # => <Participant>
         
     | 
| 
       203 
     | 
    
         
            -
            rescue Bandwidth::ApiError => e
         
     | 
| 
       204 
     | 
    
         
            -
              puts "Error when calling ParticipantsApi->get_participant_with_http_info: #{e}"
         
     | 
| 
       205 
     | 
    
         
            -
            end
         
     | 
| 
       206 
     | 
    
         
            -
            ```
         
     | 
| 
       207 
     | 
    
         
            -
             
     | 
| 
       208 
     | 
    
         
            -
            ### Parameters
         
     | 
| 
       209 
     | 
    
         
            -
             
     | 
| 
       210 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       211 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       212 
     | 
    
         
            -
            | **account_id** | **String** | Account ID |  |
         
     | 
| 
       213 
     | 
    
         
            -
            | **participant_id** | **String** | Participant ID |  |
         
     | 
| 
       214 
     | 
    
         
            -
             
     | 
| 
       215 
     | 
    
         
            -
            ### Return type
         
     | 
| 
       216 
     | 
    
         
            -
             
     | 
| 
       217 
     | 
    
         
            -
            [**Participant**](Participant.md)
         
     | 
| 
       218 
     | 
    
         
            -
             
     | 
| 
       219 
     | 
    
         
            -
            ### Authorization
         
     | 
| 
       220 
     | 
    
         
            -
             
     | 
| 
       221 
     | 
    
         
            -
            [Basic](../README.md#Basic)
         
     | 
| 
       222 
     | 
    
         
            -
             
     | 
| 
       223 
     | 
    
         
            -
            ### HTTP request headers
         
     | 
| 
       224 
     | 
    
         
            -
             
     | 
| 
       225 
     | 
    
         
            -
            - **Content-Type**: Not defined
         
     | 
| 
       226 
     | 
    
         
            -
            - **Accept**: application/json
         
     | 
| 
       227 
     | 
    
         
            -
             
     | 
    
        data/docs/RequestError.md
    DELETED
    
    | 
         @@ -1,20 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::RequestError
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **error** | **String** | A message describing the error with your request. | [optional] |
         
     | 
| 
       8 
     | 
    
         
            -
            | **request_id** | **String** | The associated requestId from AWS. | [optional] |
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            ## Example
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       13 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            instance = Bandwidth::RequestError.new(
         
     | 
| 
       16 
     | 
    
         
            -
              error: Internal error,
         
     | 
| 
       17 
     | 
    
         
            -
              request_id: 12af78d1-5f88-4917-925d-17c1ac8fda7a
         
     | 
| 
       18 
     | 
    
         
            -
            )
         
     | 
| 
       19 
     | 
    
         
            -
            ```
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
    
        data/docs/Session.md
    DELETED
    
    | 
         @@ -1,20 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Bandwidth::Session
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            ## Properties
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            | Name | Type | Description | Notes |
         
     | 
| 
       6 
     | 
    
         
            -
            | ---- | ---- | ----------- | ----- |
         
     | 
| 
       7 
     | 
    
         
            -
            | **id** | **String** | Unique id of the session. | [optional] |
         
     | 
| 
       8 
     | 
    
         
            -
            | **tag** | **String** | User defined tag to associate with the session. | [optional] |
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            ## Example
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       13 
     | 
    
         
            -
            require 'bandwidth-sdk'
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            instance = Bandwidth::Session.new(
         
     | 
| 
       16 
     | 
    
         
            -
              id: 75c21163-e110-41bc-bd76-1bb428ec85d5,
         
     | 
| 
       17 
     | 
    
         
            -
              tag: session1
         
     | 
| 
       18 
     | 
    
         
            -
            )
         
     | 
| 
       19 
     | 
    
         
            -
            ```
         
     | 
| 
       20 
     | 
    
         
            -
             
     |