T2A
Click here for a complete list of operations.
country_dial
Find an international dialling code or determine the area(s) an international telephone dialling code represents. Enter the country name, or the dialling code.
Examples:-
(1) Enter '44' will return 'GB'.
(2) Enter 'sao' to return '239',the dialling code for São Tomé and Príncipe.
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/country_dial" <?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> <country_dial xmlns="https://api.t2a.io/soap"> <api_key>string</api_key> <client>string</client> <text>string</text> </country_dial> </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> <country_dialResponse xmlns="https://api.t2a.io/soap"> <country_dialResult> <country_dial_list> <country_dial> <name>string</name> <code>string</code> </country_dial> <country_dial> <name>string</name> <code>string</code> </country_dial> </country_dial_list> </country_dialResult> </country_dialResponse> </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> <country_dial xmlns="https://api.t2a.io/soap"> <api_key>string</api_key> <client>string</client> <text>string</text> </country_dial> </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> <country_dialResponse xmlns="https://api.t2a.io/soap"> <country_dialResult> <country_dial_list> <country_dial> <name>string</name> <code>string</code> </country_dial> <country_dial> <name>string</name> <code>string</code> </country_dial> </country_dial_list> </country_dialResult> </country_dialResponse> </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/country_dial?api_key=string&client=string&text=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"?> <country_dial_res xmlns="https://api.t2a.io/soap"> <country_dial_list> <country_dial> <name>string</name> <code>string</code> </country_dial> <country_dial> <name>string</name> <code>string</code> </country_dial> </country_dial_list> </country_dial_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/country_dial HTTP/1.1 Host: api.t2a.io Content-Type: application/x-www-form-urlencoded Content-Length: length api_key=string&client=string&text=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <country_dial_res xmlns="https://api.t2a.io/soap"> <country_dial_list> <country_dial> <name>string</name> <code>string</code> </country_dial> <country_dial> <name>string</name> <code>string</code> </country_dial> </country_dial_list> </country_dial_res>