Provides a list of team invites (and their roles).
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);
$emailAddress = "user@dropboxsign.com";
try {
$result = $teamApi->teamInvites($emailAddress);
print_r($result);
} catch (Dropbox\Sign\ApiException $e) {
$error = $e->getResponseObject();
echo "Exception when calling Dropbox Sign API: "
. print_r($error->getError());
}
{- "team_invites": [
- {
- "email_address": "user@dropboxsign.com",
- "team_id": "e51f544655faa0f79e2a811c94eacaadf854162c",
- "role": "Member",
- "sent_at": 1663261509,
- "redeemed_at": null,
- "expires_at": 1663263958
}
]
}