Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWI-6320 Update SDK Based on Recent Spec Changes #151

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5658,13 +5658,32 @@ components:
$ref: '#/components/schemas/createCall'
updateCallRequest:
description: >-
JSON object containing information to redirect an existing call to a new
BXML document
JSON or BXML object containing information to redirect an existing call
to a new BXML document
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/updateCall'
application/xml:
schema:
type: string
description: A valid BXML document to replace the call's current BXML.
examples:
speakSentence:
summary: Speak Sentence
value: |-
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Bxml>
<SpeakSentence>This is a test sentence.</SpeakSentence>
</Bxml>
redirectUrl:
summary: Redirect
value: |-
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Bxml>
<Redirect redirectUrl="https://test.example" redirectMethod="GET"/>
</Bxml>
updateCallBxmlRequest:
required: true
content:
Expand Down
6 changes: 3 additions & 3 deletions docs/CallsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ end
api_instance = Bandwidth::CallsApi.new
account_id = '9900000' # String | Your Bandwidth Account ID.
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Call ID.
update_call = Bandwidth::UpdateCall.new # UpdateCall | JSON object containing information to redirect an existing call to a new BXML document
update_call = Bandwidth::UpdateCall.new # UpdateCall | JSON or BXML object containing information to redirect an existing call to a new BXML document

begin
# Update Call
Expand Down Expand Up @@ -298,7 +298,7 @@ end
| ---- | ---- | ----------- | ----- |
| **account_id** | **String** | Your Bandwidth Account ID. | |
| **call_id** | **String** | Programmable Voice API Call ID. | |
| **update_call** | [**UpdateCall**](UpdateCall.md) | JSON object containing information to redirect an existing call to a new BXML document | |
| **update_call** | [**UpdateCall**](UpdateCall.md) | JSON or BXML object containing information to redirect an existing call to a new BXML document | |

### Return type

Expand All @@ -310,7 +310,7 @@ nil (empty response body)

### HTTP request headers

- **Content-Type**: application/json
- **Content-Type**: application/json, application/xml
- **Accept**: application/json


Expand Down
6 changes: 3 additions & 3 deletions lib/bandwidth-sdk/api/calls_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def list_calls_with_http_info(account_id, opts = {})
# Interrupts and redirects a call to a different URL that should return a BXML document.
# @param account_id [String] Your Bandwidth Account ID.
# @param call_id [String] Programmable Voice API Call ID.
# @param update_call [UpdateCall] JSON object containing information to redirect an existing call to a new BXML document
# @param update_call [UpdateCall] JSON or BXML object containing information to redirect an existing call to a new BXML document
# @param [Hash] opts the optional parameters
# @return [nil]
def update_call(account_id, call_id, update_call, opts = {})
Expand All @@ -270,7 +270,7 @@ def update_call(account_id, call_id, update_call, opts = {})
# Interrupts and redirects a call to a different URL that should return a BXML document.
# @param account_id [String] Your Bandwidth Account ID.
# @param call_id [String] Programmable Voice API Call ID.
# @param update_call [UpdateCall] JSON object containing information to redirect an existing call to a new BXML document
# @param update_call [UpdateCall] JSON or BXML object containing information to redirect an existing call to a new BXML document
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def update_call_with_http_info(account_id, call_id, update_call, opts = {})
Expand Down Expand Up @@ -300,7 +300,7 @@ def update_call_with_http_info(account_id, call_id, update_call, opts = {})
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
content_type = @api_client.select_header_content_type(['application/json', 'application/xml'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end
Expand Down