Skip to content

Commit

Permalink
Updated Telebureau endpoint functions to avoid recursion/confusion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarrad Lee committed Apr 13, 2017
1 parent e567968 commit 1668b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/telebureau/TeleBureauClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function __construct ($customer_id, $secret_key, $api_host = "https://rest-ww.te
*
* See https://developer.telesign.com/docs/telebureau-api for detailed API documentation.
*/
function create (array $fields) {
function createEvent (array $fields) {
return $this->post(self::TELEBUREAU_CREATE_RESOURCE, $fields);
}

Expand All @@ -34,7 +34,7 @@ function create (array $fields) {
*
* See https://developer.telesign.com/docs/telebureau-api for detailed API documentation.
*/
function retrieve ($reference_id, array $fields = []) {
function retrieveEvent ($reference_id, array $fields = []) {
return $this->get(sprintf(self::TELEBUREAU_RETRIEVE_RESOURCE, $reference_id), $fields);
}

Expand All @@ -44,8 +44,8 @@ function retrieve ($reference_id, array $fields = []) {
*
* See https://developer.telesign.com/docs/telebureau-api for detailed API documentation.
*/
function delete ($reference_id, array $fields = []) {
return parent::delete(sprintf(self::TELEBUREAU_DELETE_RESOURCE, $reference_id), $fields);
function deleteEvent ($reference_id, array $fields = []) {
return $this->delete(sprintf(self::TELEBUREAU_DELETE_RESOURCE, $reference_id), $fields);
}

}

0 comments on commit 1668b67

Please sign in to comment.