This method gets the all contact methods. The client makes a GET request providing input parameters CompanyID and LanguageID. The output will be either in json or xml format depending on the request type.
| Name | Value | |
|---|---|---|
| REST-API METHOD | GET ALL CONTACT METHODS | |
| HTTP METHOD | GET | |
| RESPONSE TYPE | XML | |
| URL | https://api.csm.next4biz.net/services/ContactMethodService/{CompanyID}/contactMethod.json/{LangID} | https://api.csm.next4biz.net/services/ContactMethodService/{CompanyID}/contactMethod.xml/{LangID} |
| REQUEST HEAD | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+json,application/json;q=0.9,*/*;q=0.8 Content-Type: application/json | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml |
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfContactMethodInfo>
<ContactMethodInfo>
<ContactMethodID>{ContactMethodID}</ContactMethodID>
<ContactMethodName>{ContactMethodName}</ContactMethodName>
</ContactMethodInfo>
</ArrayOfContactMethodInfo>
{
"ContactMethodInfo": {
"ContactMethodID": "{ContactMethodID}",
"ContactMethodName": "{ContactMethodName}"
}
}