Provides a paginated list of sub teams that belong to a given 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);
$teamId = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c";
try {
$result = $teamApi->teamSubTeams($teamId);
print_r($result);
} catch (Dropbox\Sign\ApiException $e) {
$error = $e->getResponseObject();
echo "Exception when calling Dropbox Sign API: "
. print_r($error->getError());
}
{- "list_info": {
- "page": 1,
- "num_pages": 1,
- "num_results": 4,
- "page_size": 20
}, - "sub_teams": [
- {
- "team_id": "29b09ebad6013a2b56cda80ccdc25847158e06a8",
- "name": "Team A"
}, - {
- "team_id": "d6218f881ec36ae628507fa60c8099934730b7ca",
- "name": "Team B"
}
]
}