Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.88 KB

AccountApi.md

File metadata and controls

67 lines (44 loc) · 1.88 KB

OpenAPI\Client\AccountApi

All URIs are relative to https://api.webscraping.ai, except if the operation defines another base path.

Method HTTP request Description
account() GET /account Information about your account calls quota

account()

account(): \OpenAPI\Client\Model\Account

Information about your account calls quota

Returns information about your account, including the remaining API credits quota, the next billing cycle start time, and the remaining concurrent requests. The response is in JSON format.

Example

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


// Configure API key authorization: api_key
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');


$apiInstance = new OpenAPI\Client\Api\AccountApi(
    // 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
);

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

Parameters

This endpoint does not need any parameter.

Return type

\OpenAPI\Client\Model\Account

Authorization

api_key

HTTP request headers

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

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