public function getDevices($modifiedAfter = 0, $cursor = null, $limit = null)
    {
        $data = self::initData($modifiedAfter, $cursor, $limit);

        $devices = Connection::sendCurlRequest(Connection::URL_DEVICES, 'GET', $data, true, $this->apiKey)->devices;

        $objDevices = [];

        foreach ($devices as $d) {
            if (!empty($d->active)) {
                $objDevices[] = new Device($d, $this->apiKey);
            }
        }

        $this->devices = $objDevices;

        return $objDevices;
    }