DataSift_Account_Identity_Limit::getAll PHP Method

getAll() public method

Get all the limits for a service
public getAll ( string $service, integer $page = 1, $perPage = 25 ) : mixed
$service string
$page integer
return mixed
    public function getAll($service, $page = 1, $perPage = 25)
    {
        $params = array('page' => $page, 'per_page' => $perPage);
        return $this->_user->get('account/identity/limit/' . $service, $params);
    }

Usage Example

Example #1
0
 /**
  * @dataProvider getAllLimitsProvider
  * @covers Datasift_Account_Identity_Limit::getAll
  */
 public function testGetAllLimits($service, $page, $perPage, $apiResult, $expectedResult)
 {
     $identityLimit = new DataSift_Account_Identity_Limit($this->_user);
     DataSift_MockApiClient::setResponse($apiResult);
     if (isset($expectedResult['error'])) {
         $this->setExpectedException('DataSift_Exception_APIError');
     }
     $result = $identityLimit->getAll($service, $page, $perPage);
     $this->assertEquals($expectedResult, $result);
 }
All Usage Examples Of DataSift_Account_Identity_Limit::getAll
DataSift_Account_Identity_Limit