Provides a paginated list of members (and their roles) 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->teamMembers($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": 2,
- "page_size": 20
}, - "members": [
- {
- "account_id": "bb7e16df3cf8944a059ae908ba914539c1ce3d13",
- "email_address": "team-admin@example.com",
- "role": "Admin"
}, - {
- "account_id": "29b09ebad6013a2b56cda80ccdc25847158e06a8",
- "email_address": "developer@example.com",
- "role": "Developer"
}
]
}