src/Devices.php
public function getAll($limit = self::DEVICES_LIMIT, $offset = 0)
    {
        $query = [
            'limit' => max(1, min(self::DEVICES_LIMIT, filter_var($limit, FILTER_VALIDATE_INT))),
            'offset' => max(0, filter_var($offset, FILTER_VALIDATE_INT)),
            'app_id' => $this->api->getConfig()->getApplicationId(),
        ];

        return $this->api->request('GET', '/players?'.http_build_query($query), [
            'Authorization' => 'Basic '.$this->api->getConfig()->getApplicationAuthKey(),
        ]);
    }
public function getAll($limit = self::DEVICES_LIMIT, $offset = 0)
    {
        $query = [
            'limit' => max(1, min(self::DEVICES_LIMIT, filter_var($limit, FILTER_VALIDATE_INT))),
            'offset' => max(0, filter_var($offset, FILTER_VALIDATE_INT)),
            'app_id' => $this->api->getConfig()->getApplicationId(),
        ];

        return $this->api->request('GET', '/players?'.http_build_query($query), [
            'Authorization' => 'Basic '.$this->api->getConfig()->getApplicationAuthKey(),
        ]);
    }
public function getAll ( $ limit = self :: DEVICES_LIMIT , $ offset = 0 ) { $ query = [ 'limit' => max ( 1 , min ( self :: DEVICES_LIMIT , filter_var ( $ limit , FILTER_VALIDATE_INT ) ) ) , 'offset' => max ( 0 , filter_var ( $ offset , FILTER_VALIDATE_INT ) ) , 'app_id' => $ this -> api -> getConfig ( ) -> getApplicationId ( ) , ] ; return $ this -> api -> request ( 'GET' , '/players?' . http_build_query ( $ query ) , [ 'Authorization' => 'Basic ' . $ this -> api -> getConfig ( ) -> getApplicationAuthKey ( ) , ] ) ; }
Get information about all registered devices for your application.

Application auth key must be set.

@param int $limit  How many devices to return. Max is 300. Default is 300
@param int $offset Result offset. Default is 0. Results are sorted by id

@return array
Get information about all registered devices for your application .