Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.
Open
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
29 changes: 29 additions & 0 deletions src/Cleeng/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -1489,6 +1489,35 @@ public function updateAssociate($associateEmail, $associateData)
);
}

/**
* List Cancellations API: listCancellations
*
* @param array $criteria
* @param int $offset
* @param int $limit
*
* @return Cleeng_Entity_Collection
*/
public function listCancellations($criteria = array(), $offset = 1, $limit = 20)
{
$collection = new Cleeng_Entity_Collection('Cleeng_Entity_Base');
$publisherToken = $this->getPublisherToken();
if (!$publisherToken) {
throw new Cleeng_Exception_RuntimeException("Cannot call " . __FUNCTION__ . ": setPublisherToken must be used first.");
}

return $this->api(
'listCancellations',
array(
'publisherToken' => $this->getPublisherToken(),
'criteria' => $criteria,
'offset' => $offset,
'limit' => $limit,
),
$collection
);
}

/**
* Wrapper for getAccessStatus method
*
Expand Down