Returns information about your Team as well as a list of its members. If you do not belong to a Team, a 404 error with an error_name of "not_found" will be returned.
successful operation
failed_operation
<?php
require_once __DIR__ . "/vendor/autoload.php";
$config = Dropbox\Sign\Configuration::getDefaultConfiguration();
// Configure HTTP basic authorization: api_key
$config->setUsername("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
// $config->setAccessToken("YOUR_ACCESS_TOKEN");
$teamApi = new Dropbox\Sign\Api\TeamApi($config);
try {
$result = $teamApi->teamGet();
print_r($result);
} catch (Dropbox\Sign\ApiException $e) {
$error = $e->getResponseObject();
echo "Exception when calling Dropbox Sign API: "
. print_r($error->getError());
}
{- "team": {
- "name": "Team Dropbox Sign",
- "accounts": [
- {
- "account_id": "5008b25c7f67153e57d5a357b1687968068fb465",
- "email_address": "me@dropboxsign.com",
- "is_locked": false,
- "is_paid_hs": true,
- "is_paid_hf": false,
- "quotas": {
- "templates_left": null,
- "documents_left": null,
- "api_signature_requests_left": 1250
}, - "role_code": "a"
}, - {
- "account_id": "d3d3d7b98d80b67d07740df7cdfd1f49fa8e2b82",
- "email_address": "teammate@dropboxsign.com",
- "is_locked": false,
- "is_paid_hs": true,
- "is_paid_hf": false,
- "quotas": {
- "templates_left": null,
- "documents_left": null,
- "api_signature_requests_left": 1250
}, - "role_code": "m"
}
], - "invited_accounts": [
- {
- "account_id": "8e239b5a50eac117fdd9a0e2359620aa57cb2463",
- "email_address": "george@hellofax.com",
- "is_locked": false,
- "is_paid_hs": false,
- "is_paid_hf": false,
- "quotas": {
- "templates_left": 0,
- "documents_left": 3,
- "api_signature_requests_left": 0
}
}
], - "invited_emails": [
- "invite_1@example.com",
- "invite_2@example.com",
- "invite_3@example.com"
]
}
}