All URIs are relative to https://api-sandbox.yousign.app/v3, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getConsumptions() | GET /consumptions | Get Consumptions |
getConsumptionsExport() | GET /consumptions/export | Export Consumption data |
getConsumptions($from, $to, $authentication_key): \Yousign\Client\Model\Consumption
Get Consumptions
Get signatures Consumption by source
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Yousign\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Yousign\Client\Api\ConsumptionApi(
// 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
);
$from = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The \"from\" date must not be more than 1 year in the past
$to = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The \"to\" date must be more recent than the \"from\" date
$authentication_key = 'authentication_key_example'; // string
try {
$result = $apiInstance->getConsumptions($from, $to, $authentication_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConsumptionApi->getConsumptions: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
from | \DateTime | The "from" date must not be more than 1 year in the past | |
to | \DateTime | The "to" date must be more recent than the "from" date | |
authentication_key | string | [optional] |
\Yousign\Client\Model\Consumption
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getConsumptionsExport($from, $to, $authentication_key): string
Export Consumption data
Get a binary .csv file containing all the Consumption data of the underlying signatures
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Yousign\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Yousign\Client\Api\ConsumptionApi(
// 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
);
$from = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The \"from\" date must not be more than 1 year in the past
$to = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The \"to\" date must be more recent than the \"from\" date
$authentication_key = 'authentication_key_example'; // string
try {
$result = $apiInstance->getConsumptionsExport($from, $to, $authentication_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConsumptionApi->getConsumptionsExport: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
from | \DateTime | The "from" date must not be more than 1 year in the past | |
to | \DateTime | The "to" date must be more recent than the "from" date | |
authentication_key | string | [optional] |
string
- Content-Type: Not defined
- Accept:
text/csv
,application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]