T2A
Click here for a complete list of operations.
find_my_nearest
Return the nearest records from client data list. 'group_id' is your predefined group identifier, or leave blank to use the default group id.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /soap/t2a.asmx HTTP/1.1 Host: api.t2a.io Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://api.t2a.io/soap/find_my_nearest" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <find_my_nearest xmlns="https://api.t2a.io/soap"> <api_key>string</api_key> <client>string</client> <group_name>string</group_name> <latitude>string</latitude> <longitude>string</longitude> <postcode>string</postcode> <max_range_metres>string</max_range_metres> <max_results>string</max_results> </find_my_nearest> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <find_my_nearestResponse xmlns="https://api.t2a.io/soap"> <find_my_nearestResult> <input_parameter_list> <input_parameter> <key>string</key> <value>string</value> </input_parameter> <input_parameter> <key>string</key> <value>string</value> </input_parameter> </input_parameter_list> <nearest_data_list> <nearest_data> <opening_time_list xsi:nil="true" /> <service_list xsi:nil="true" /> <id>string</id> <nearest_id>string</nearest_id> <misc1>string</misc1> <misc2>string</misc2> <misc3>string</misc3> <misc4>string</misc4> </nearest_data> <nearest_data> <opening_time_list xsi:nil="true" /> <service_list xsi:nil="true" /> <id>string</id> <nearest_id>string</nearest_id> <misc1>string</misc1> <misc2>string</misc2> <misc3>string</misc3> <misc4>string</misc4> </nearest_data> </nearest_data_list> </find_my_nearestResult> </find_my_nearestResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /soap/t2a.asmx HTTP/1.1 Host: api.t2a.io Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <find_my_nearest xmlns="https://api.t2a.io/soap"> <api_key>string</api_key> <client>string</client> <group_name>string</group_name> <latitude>string</latitude> <longitude>string</longitude> <postcode>string</postcode> <max_range_metres>string</max_range_metres> <max_results>string</max_results> </find_my_nearest> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <find_my_nearestResponse xmlns="https://api.t2a.io/soap"> <find_my_nearestResult> <input_parameter_list> <input_parameter> <key>string</key> <value>string</value> </input_parameter> <input_parameter> <key>string</key> <value>string</value> </input_parameter> </input_parameter_list> <nearest_data_list> <nearest_data> <opening_time_list xsi:nil="true" /> <service_list xsi:nil="true" /> <id>string</id> <nearest_id>string</nearest_id> <misc1>string</misc1> <misc2>string</misc2> <misc3>string</misc3> <misc4>string</misc4> </nearest_data> <nearest_data> <opening_time_list xsi:nil="true" /> <service_list xsi:nil="true" /> <id>string</id> <nearest_id>string</nearest_id> <misc1>string</misc1> <misc2>string</misc2> <misc3>string</misc3> <misc4>string</misc4> </nearest_data> </nearest_data_list> </find_my_nearestResult> </find_my_nearestResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /soap/t2a.asmx/find_my_nearest?api_key=string&client=string&group_name=string&latitude=string&longitude=string&postcode=string&max_range_metres=string&max_results=string HTTP/1.1 Host: api.t2a.io
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <find_my_nearest_res xmlns="https://api.t2a.io/soap"> <input_parameter_list> <input_parameter> <key>string</key> <value>string</value> </input_parameter> <input_parameter> <key>string</key> <value>string</value> </input_parameter> </input_parameter_list> <nearest_data_list> <nearest_data> <opening_time_list> <opening_time d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <opening_time d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </opening_time_list> <service_list> <service d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <service d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </service_list> <id>string</id> <nearest_id>string</nearest_id> <misc1>string</misc1> <misc2>string</misc2> <misc3>string</misc3> <misc4>string</misc4> </nearest_data> <nearest_data> <opening_time_list> <opening_time d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <opening_time d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </opening_time_list> <service_list> <service d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <service d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </service_list> <id>string</id> <nearest_id>string</nearest_id> <misc1>string</misc1> <misc2>string</misc2> <misc3>string</misc3> <misc4>string</misc4> </nearest_data> </nearest_data_list> </find_my_nearest_res>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /soap/t2a.asmx/find_my_nearest HTTP/1.1 Host: api.t2a.io Content-Type: application/x-www-form-urlencoded Content-Length: length api_key=string&client=string&group_name=string&latitude=string&longitude=string&postcode=string&max_range_metres=string&max_results=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <find_my_nearest_res xmlns="https://api.t2a.io/soap"> <input_parameter_list> <input_parameter> <key>string</key> <value>string</value> </input_parameter> <input_parameter> <key>string</key> <value>string</value> </input_parameter> </input_parameter_list> <nearest_data_list> <nearest_data> <opening_time_list> <opening_time d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <opening_time d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </opening_time_list> <service_list> <service d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <service d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </service_list> <id>string</id> <nearest_id>string</nearest_id> <misc1>string</misc1> <misc2>string</misc2> <misc3>string</misc3> <misc4>string</misc4> </nearest_data> <nearest_data> <opening_time_list> <opening_time d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <opening_time d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </opening_time_list> <service_list> <service d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <service d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </service_list> <id>string</id> <nearest_id>string</nearest_id> <misc1>string</misc1> <misc2>string</misc2> <misc3>string</misc3> <misc4>string</misc4> </nearest_data> </nearest_data_list> </find_my_nearest_res>