Provides information about a team.
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->teamInfo();
print_r($result);
} catch (Dropbox\Sign\ApiException $e) {
$error = $e->getResponseObject();
echo "Exception when calling Dropbox Sign API: "
. print_r($error->getError());
}
{- "team": {
- "team_id": "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c",
- "name": "Team A",
- "num_sub_teams": 4,
- "num_members": 0,
- "parent_team": {
- "team_id": "89dc8eea8361bf7dc760b09004856a9d4eae8faa",
- "name": "Root Team"
}
}
}