Provides a paginated list of members (and their roles) that belong to a given team.
successful operation
failed_operation
<?php
namespace Dropbox\SignSandbox;
require_once __DIR__ . '/../vendor/autoload.php';
use SplFileObject;
use Dropbox;
$config = Dropbox\Sign\Configuration::getDefaultConfiguration();
$config->setUsername("YOUR_API_KEY");
// $config->setAccessToken("YOUR_ACCESS_TOKEN");
try {
$response = (new Dropbox\Sign\Api\TeamApi(config: $config))->teamMembers(
team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c",
page: 1,
page_size: 20,
);
print_r($response);
} catch (Dropbox\Sign\ApiException $e) {
echo "Exception when calling TeamApi#teamMembers: {$e->getMessage()}";
}
{- "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"
}
]
}