Skip to content

Voice, MFA, and messaging class/method/signature renames (breaking changes) #31

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

Merged
merged 4 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitkeep
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
README.md
src/Voice/Bxml/*
src/WebRtc/Utils/*
tests/*
2 changes: 1 addition & 1 deletion src/APIException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib;
Expand Down
2 changes: 1 addition & 1 deletion src/APIHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib;
Expand Down
16 changes: 8 additions & 8 deletions src/BandwidthClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib;
Expand All @@ -21,7 +21,7 @@ public function __construct($config)
}

private $messaging;
private $twoFactorAuth;
private $multiFactorAuth;
private $phoneNumberLookup;
private $voice;
private $webRtc;
Expand All @@ -39,15 +39,15 @@ public function getMessaging()
}

/**
* Provides access to TwoFactorAuth client
* @return TwoFactorAuth\TwoFactorAuthClient
* Provides access to MultiFactorAuth client
* @return MultiFactorAuth\MultiFactorAuthClient
*/
public function getTwoFactorAuth()
public function getMultiFactorAuth()
{
if ($this->twoFactorAuth == null) {
$this->twoFactorAuth = new TwoFactorAuth\TwoFactorAuthClient($this->config);
if ($this->multiFactorAuth == null) {
$this->multiFactorAuth = new MultiFactorAuth\MultiFactorAuthClient($this->config);
}
return $this->twoFactorAuth;
return $this->multiFactorAuth;
}

/**
Expand Down
38 changes: 19 additions & 19 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib;
Expand Down Expand Up @@ -35,13 +35,13 @@ class Configuration
* The username to use with basic authentication
* @var string
*/
private $twoFactorAuthBasicAuthUserName = 'TODO: Replace';
private $multiFactorAuthBasicAuthUserName = 'TODO: Replace';

/**
* The password to use with basic authentication
* @var string
*/
private $twoFactorAuthBasicAuthPassword = 'TODO: Replace';
private $multiFactorAuthBasicAuthPassword = 'TODO: Replace';

/**
* The username to use with basic authentication
Expand Down Expand Up @@ -102,11 +102,11 @@ public function __construct($configOptions = null)
if (isset($configOptions['messagingBasicAuthPassword'])) {
$this->messagingBasicAuthPassword = $configOptions['messagingBasicAuthPassword'];
}
if (isset($configOptions['twoFactorAuthBasicAuthUserName'])) {
$this->twoFactorAuthBasicAuthUserName = $configOptions['twoFactorAuthBasicAuthUserName'];
if (isset($configOptions['multiFactorAuthBasicAuthUserName'])) {
$this->multiFactorAuthBasicAuthUserName = $configOptions['multiFactorAuthBasicAuthUserName'];
}
if (isset($configOptions['twoFactorAuthBasicAuthPassword'])) {
$this->twoFactorAuthBasicAuthPassword = $configOptions['twoFactorAuthBasicAuthPassword'];
if (isset($configOptions['multiFactorAuthBasicAuthPassword'])) {
$this->multiFactorAuthBasicAuthPassword = $configOptions['multiFactorAuthBasicAuthPassword'];
}
if (isset($configOptions['phoneNumberLookupBasicAuthUserName'])) {
$this->phoneNumberLookupBasicAuthUserName = $configOptions['phoneNumberLookupBasicAuthUserName'];
Expand Down Expand Up @@ -147,11 +147,11 @@ public function getConfigurationMap()
if (isset($this->messagingBasicAuthPassword)) {
$configMap['messagingBasicAuthPassword'] = $this->messagingBasicAuthPassword;
}
if (isset($this->twoFactorAuthBasicAuthUserName)) {
$configMap['twoFactorAuthBasicAuthUserName'] = $this->twoFactorAuthBasicAuthUserName;
if (isset($this->multiFactorAuthBasicAuthUserName)) {
$configMap['multiFactorAuthBasicAuthUserName'] = $this->multiFactorAuthBasicAuthUserName;
}
if (isset($this->twoFactorAuthBasicAuthPassword)) {
$configMap['twoFactorAuthBasicAuthPassword'] = $this->twoFactorAuthBasicAuthPassword;
if (isset($this->multiFactorAuthBasicAuthPassword)) {
$configMap['multiFactorAuthBasicAuthPassword'] = $this->multiFactorAuthBasicAuthPassword;
}
if (isset($this->phoneNumberLookupBasicAuthUserName)) {
$configMap['phoneNumberLookupBasicAuthUserName'] = $this->phoneNumberLookupBasicAuthUserName;
Expand Down Expand Up @@ -199,16 +199,16 @@ public function getMessagingBasicAuthPassword()
return $this->messagingBasicAuthPassword;
}

// Getter for twoFactorAuthBasicAuthUserName
public function getTwoFactorAuthBasicAuthUserName()
// Getter for multiFactorAuthBasicAuthUserName
public function getMultiFactorAuthBasicAuthUserName()
{
return $this->twoFactorAuthBasicAuthUserName;
return $this->multiFactorAuthBasicAuthUserName;
}

// Getter for twoFactorAuthBasicAuthPassword
public function getTwoFactorAuthBasicAuthPassword()
// Getter for multiFactorAuthBasicAuthPassword
public function getMultiFactorAuthBasicAuthPassword()
{
return $this->twoFactorAuthBasicAuthPassword;
return $this->multiFactorAuthBasicAuthPassword;
}

// Getter for phoneNumberLookupBasicAuthUserName
Expand Down Expand Up @@ -283,15 +283,15 @@ public function getBaseUri($server = Servers::DEFAULT_)
Environments::PRODUCTION => array(
Servers::DEFAULT_ => 'api.bandwidth.com',
Servers::MESSAGINGDEFAULT => 'https://messaging.bandwidth.com/api/v2',
Servers::TWOFACTORAUTHDEFAULT => 'https://mfa.bandwidth.com/api/v1',
Servers::MULTIFACTORAUTHDEFAULT => 'https://mfa.bandwidth.com/api/v1',
Servers::PHONENUMBERLOOKUPDEFAULT => 'https://numbers.bandwidth.com/api/v1',
Servers::VOICEDEFAULT => 'https://voice.bandwidth.com',
Servers::WEBRTCDEFAULT => 'https://api.webrtc.bandwidth.com/v1',
),
Environments::CUSTOM => array(
Servers::DEFAULT_ => '{base_url}',
Servers::MESSAGINGDEFAULT => '{base_url}',
Servers::TWOFACTORAUTHDEFAULT => '{base_url}',
Servers::MULTIFACTORAUTHDEFAULT => '{base_url}',
Servers::PHONENUMBERLOOKUPDEFAULT => '{base_url}',
Servers::VOICEDEFAULT => '{base_url}',
Servers::WEBRTCDEFAULT => '{base_url}',
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib\Controllers;
Expand Down
2 changes: 1 addition & 1 deletion src/Environments.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/ApiResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib\Http;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/HttpCallBack.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib\Http;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/HttpContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib\Http;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/HttpMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib\Http;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/HttpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib\Http;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/HttpResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/

namespace BandwidthLib\Http;
Expand Down
Loading