Developer documentation for Stargest SOAP API

Ressource : Agent

Description

Allow you to get all informations about the agent who represent the brand .

Method

agent_info

Arguments

Type Name Description
array stParamConnexion This is a structure
string sProductCode The product code

stParamConnexion

Type Name Description
string sLogin The login provided see the get started Configuration
string sKey The Key provided see the get started Configuration

Return


agent_infoResult

Type Name Description
array stProcessing This is a structure of the success/error process
array stDatas This is a structure that contains the data resulting from the query

stProcessing

Type Name Description
string sErrorMessage This is a structure
boolean bProcessed This is the result of the request traitement processing

stDatas

Type Name Description
string sAgentCode The agent code who represent the brand
string sAgentName The name of the agent
string sAddress The agent address
string sPhone The agent's phone
string sMobile The agent's mobile phone
string sPostalCode The agent's postal code
string sCity The city of the agent

Exemple

Request Example SOAP and PHP

                        
                        

$client = new \SoapClient($wsdl);

$args['stParamConnexion']['sLogin'] = "test";

$args['stParamConnexion']['sKey'] = "000";

$args['sAgenttCode'] = 'MyAgentCode';

$return = $client->agent_info($args);