Skip to content

Commit

Permalink
Merge pull request #53 from Bandwidth/DX-2467
Browse files Browse the repository at this point in the history
DX-2467 - Fixed url for BXML
  • Loading branch information
brianluisgomez authored May 10, 2022
2 parents 64e6c73 + bd827cb commit 67542f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Voice/Controllers/APIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function modifyCallBxml(
) {

//prepare query string for API call
$_queryBuilder = '/api/v2/accounts/{accountId}/calls/{callId}';
$_queryBuilder = '/api/v2/accounts/{accountId}/calls/{callId}/bxml';

//process optional query parameters
$_queryBuilder = APIHelper::appendUrlWithTemplateParameters($_queryBuilder, array (
Expand All @@ -285,7 +285,7 @@ public function modifyCallBxml(
//set HTTP basic auth parameters
Request::auth($this->config->getVoiceBasicAuthUserName(), $this->config->getVoiceBasicAuthPassword());

$_httpRequest = new HttpRequest(HttpMethod::POST, $_headers, $_queryUrl);
$_httpRequest = new HttpRequest(HttpMethod::PUT, $_headers, $_queryUrl);

//call on-before Http callback
if ($this->getHttpCallBack() != null) {
Expand Down

0 comments on commit 67542f3

Please sign in to comment.