home > support > API > Marketplace API > API: show agent profile
View information on a a single agent.
Tour Operators can only access information from Agents to whose channels they are connected, Marketplace Agents can request their own information but not that of another Marketplace Agent.
Endpoint | /api/agent/profile/get |
Formats | XML |
Example | /api/agent/profile/get.xml?id=12345 |
Verb | GET |
PHP examples use the PHP Client Library with SimpleXML
object show_agent_profile ( int $partnerId [, int $channel = 0] )
// Marketplace agent ID number
$partnerId = 12345;
// ID for the channel the operation is bound to
$channel = 199;
// Using the method as an Operator
$result = $tourcms->show_agent_profile($partnerId, $channel);
// Get the agent node
$agent = $result->agent;
// Print the agent ID
print $agent->id . "<br />";
// Print the agent phone
print $agent->phone . "<br />";
//Print the agent nationality
print $agent->country . "<br />"
12345
34534534
ES
C# examples use the .Net Client Library
Not supported currently
VB examples use the .Net Client Library
Not supported currently
NodeJS examples use the NodeJS Wrapper
Not supported currently
Looking for sample code in a different language? TourCMS and community provided API libraries
Implementing yourself? Check the REST info for this endpoint.
Enter your TourCMS API credentials below to call the Show Booking endpoint.
XML Node | Notes | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request | Confirmation of the request that you sent | ||||||||||||||||||||||||||
error | Any error message returned, if there is no error this will just contain the text OK | ||||||||||||||||||||||||||
agent |
The agent node contains the following child nodes.
|