-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from team-telnyx/10DLC-Update-+-Version
Added 10DLC Endpoints and version bump
- Loading branch information
Showing
6 changed files
with
147 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.8.0 | ||
2.9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Telnyx; | ||
|
||
/** | ||
* Class Address | ||
* | ||
* @package Telnyx | ||
*/ | ||
class Address extends ApiResource | ||
{ | ||
const OBJECT_NAME = "brand"; | ||
|
||
use ApiOperations\All; | ||
use ApiOperations\Create; | ||
use ApiOperations\Delete; | ||
use ApiOperations\Retrieve; | ||
use ApiOperations\Update; | ||
|
||
/** | ||
* @return string The endpoint associated with this singleton class. | ||
*/ | ||
public static function classUrl() | ||
{ | ||
// Use a custom URL for this resource | ||
// NOTE: This endpoint is special because domain 10dlc is used and not v2 | ||
// NOTE: This endpoint is special because object name is "brand" and endpoint is "brands" | ||
return "/10dlc/brand"; | ||
} | ||
public function revet($params = null, $options = null) | ||
{ | ||
$url = $this->instanceUrl() . '/revet'; | ||
list($response, $opts) = $this->_request('put', $url, $params, $options); | ||
$this->refreshFrom($response, $opts); | ||
return $this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
namespace Telnyx; | ||
|
||
/** | ||
* Class Address | ||
* | ||
* @package Telnyx | ||
*/ | ||
class Address extends ApiResource | ||
{ | ||
const OBJECT_NAME = "campaign"; | ||
|
||
use ApiOperations\All; | ||
use ApiOperations\Create; | ||
use ApiOperations\Delete; | ||
use ApiOperations\Retrieve; | ||
use ApiOperations\Update; | ||
|
||
/** | ||
* @return string The endpoint associated with this singleton class. | ||
*/ | ||
public static function classUrl() | ||
{ | ||
// Use a custom URL for this resource | ||
// NOTE: This endpoint is special because object name is "campaign" and endpoint is "campaign" | ||
// NOTE: This endpoint is special because domain 10dlc is used and not v2 | ||
return "/10dlc/campaign"; | ||
} | ||
public function mnoMetadata($params = null, $options = null) | ||
{ | ||
$url = $this->instanceUrl() . '/mnoMetadata'; | ||
list($response, $opts) = $this->_request('get', $url, $params, $options); | ||
$this->refreshFrom($response, $opts); | ||
return $this; | ||
} | ||
public function operationStatus($params = null, $options = null) | ||
{ | ||
$url = $this->instanceUrl() . '/operationStatus'; | ||
list($response, $opts) = $this->_request('get', $url, $params, $options); | ||
$this->refreshFrom($response, $opts); | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace Telnyx; | ||
|
||
/** | ||
* Class Address | ||
* | ||
* @package Telnyx | ||
*/ | ||
class Address extends ApiResource | ||
{ | ||
const OBJECT_NAME = "phone_number_assignment_by_profile"; | ||
|
||
use ApiOperations\All; | ||
use ApiOperations\Create; | ||
use ApiOperations\Retrieve; | ||
|
||
/** | ||
* @return string The endpoint associated with this singleton class. | ||
*/ | ||
public static function classUrl() | ||
{ | ||
// Use a custom URL for this resource | ||
// NOTE: This endpoint is special because object name and endpoint are both not plural | ||
return "/v2/phoneNumberAssignmnetByProfile"; | ||
} | ||
public function phone_numbers($params = null, $options = null) | ||
{ | ||
$url = $this->instanceUrl() . '/phoneNumbers'; | ||
list($response, $opts) = $this->_request('get', $url, $params, $options); | ||
$this->refreshFrom($response, $opts); | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Telnyx; | ||
|
||
/** | ||
* Class Address | ||
* | ||
* @package Telnyx | ||
*/ | ||
class Address extends ApiResource | ||
{ | ||
const OBJECT_NAME = "phone_number_campaign"; | ||
|
||
use ApiOperations\All; | ||
use ApiOperations\Create; | ||
use ApiOperations\Delete; | ||
use ApiOperations\Retrieve; | ||
use ApiOperations\Update; | ||
|
||
/** | ||
* @return string The endpoint associated with this singleton class. | ||
*/ | ||
public static function classUrl() | ||
{ | ||
// Use a custom URL for this resource | ||
// NOTE: This endpoint is special because object name and endpoint are not plural | ||
return "/v2/phoneNumberCampaign"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters