GET api/CountryStateCity/GetPhoneCode?APIKey={APIKey}
API to get list of Phone code
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
APIKey | string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
Collection of PhoneCodeDataModelName | Description | Type | Additional information |
---|---|---|---|
ID | string |
None. |
|
Name | string |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
[ { "id": "sample string 1", "name": "sample string 2" }, { "id": "sample string 1", "name": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfPhoneCodeDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"> <PhoneCodeDataModel> <ID>sample string 1</ID> <Name>sample string 2</Name> </PhoneCodeDataModel> <PhoneCodeDataModel> <ID>sample string 1</ID> <Name>sample string 2</Name> </PhoneCodeDataModel> </ArrayOfPhoneCodeDataModel>
multipart/form-data
Sample:
<ArrayOfPhoneCodeDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><PhoneCodeDataModel><ID>sample string 1</ID><Name>sample string 2</Name></PhoneCodeDataModel><PhoneCodeDataModel><ID>sample string 1</ID><Name>sample string 2</Name></PhoneCodeDataModel></ArrayOfPhoneCodeDataModel>