Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.84 KB

File metadata and controls

66 lines (44 loc) · 1.84 KB

QuantClient\AIUsageApi

All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path.

Method HTTP request Description
getMyUsage() GET /api/v3/organizations/{organisation}/ai/usage/me Get AI usage summary for the authenticated user

getMyUsage()

getMyUsage($organisation): \QuantClient\Model\GetMyUsage200Response

Get AI usage summary for the authenticated user

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AIUsageApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$organisation = 'organisation_example'; // string | The organisation ID

try {
    $result = $apiInstance->getMyUsage($organisation);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AIUsageApi->getMyUsage: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string The organisation ID

Return type

\QuantClient\Model\GetMyUsage200Response

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]