WebDriver\SauceLabs\SauceRest::getUsage PHP Method

getUsage() public method

Get historical account usage: /rest/v1/:userId/usage (GET)
public getUsage ( string $start = null, string $end = null ) : array
$start string Optional start date YYYY-MM-DD
$end string Optional end date YYYY-MM-DD
return array
    public function getUsage($start = null, $end = null)
    {
        $query = http_build_query(array('start' => $start, 'end' => $end));
        return $this->execute('GET', $this->userId . '/usage' . (strlen($query) ? '?' . $query : ''));
    }