Gets the client account information for managed clients of effective user.
If the effective user has no client accounts, an empty array is returned.
The effective user is:
the user specified in the clientEmail header of the request if that
header is provided
the user specified in the email header if the clientEmail header is not
provided
For more information about the clientEmail header, see the section
Request Headers.
If an account has more than one email associated with it,
getClientAccounts gets only the primary email for the account.
array of ClientAccountInfo objects, each containing a managed
client's information.
getClientAccounts
Gets the primary email address for each account managed by the effective
user.
If the effective user user has no client accounts, an empty array is
returned.
The effective user is:
the user specified in the clientEmail header of the request if that
header is provided
the user specified in the email header if the clientEmail header is not
provided
For more information about the clientEmail header, see the section
Request Headers.
In other words, you can use the getClientAccounts request to find the
primary email addresses for your own clients, or for your client's clients.
If an account has more than one email associated with it,
getClientAccounts gets only the primary email for the account.
Response
Response type
Response description
string[]
array of account login emails associated with the accounts managed
by the current customer.
# Get client accounts.
my $response = $service->call('getClientAccounts' => @headers);
my @login_emails = ($response->result(), $response->paramsout());