Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SauceRest.php

function SauceRest::getUsage

Get historical account usage: /rest/v1/:userId/usage (GET)

Parameters

string $start Optional start date YYYY-MM-DD:

string $end Optional end date YYYY-MM-DD:

Return value

array

File

vendor/lullabot/php-webdriver/lib/WebDriver/SauceLabs/SauceRest.php, line 212

Class

SauceRest
WebDriver\SauceLabs\SauceRest class

Namespace

WebDriver\SauceLabs

Code

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 : ''));
}
RSS feed
Powered by Drupal