WEBPhoneGetTypes

 

WEBPhoneGetTypes

Initial Build 2008.01
xWeb Web Method
Response Type XML results

This method can be used to get a list of phone types. This can be used in a drop-down list when adding or updating phone numbers.

Sample Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<!--Optional:-->
<ns:Token>2306bae2-4f6f-499c-8b8b-daffb79abb9b</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBPhoneGetTypes/>
</soapenv:Body>
</soapenv:Envelope>

Sample Response

Shortened for brevity.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>2306bae2-4f6f-499c-8b8b-daffb79abb9b</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<WEBPhoneGetTypesResponse xmlns="http://www.avectra.com/2005/">
<WEBPhoneGetTypesResult>
<Results recordReturn="3">
<Result>
<pht_key>2a9538e5-eaa4-4f30-924c-be5c694f209b</pht_key>
<pht_code>Home</pht_code>
</Result>
<Result>
<pht_key>0e805048-c5cb-4ba6-a1a2-facba63cb8a1</pht_key>
<pht_code>Other</pht_code>
</Result>
<Result>
<pht_key>c829d1e6-f7d9-4ed8-abbb-ec89ed70c87e</pht_key>
<pht_code>Work</pht_code>
</Result>
</Results>
</WEBPhoneGetTypesResult>
</WEBPhoneGetTypesResponse>
</soap:Body>
</soap:Envelope>

 

JSON Method

POST /xWeb/JSON/WEBPhoneGetTypes

DATA: JSON
{
    "WEBPhoneGetTypes" : null
}

SAMPLE RESULT
HTTP STATUS: 200
DATA: JSON
{
    "Results": {
        "@recordReturn": "5",
        "Result": [
            {
                "pht_key": "36cbefc2-d988-42dc-8618-6072a758af08",
                "pht_code": "Business"
            },
            {
                "pht_key": "b10a5062-350f-4892-bdc6-fca4864c04ce",
                "pht_code": "Home"
            },
            {
                "pht_key": "400a56a3-9754-47ec-befc-2b4e32beebe7",
                "pht_code": "Mobile"
            },
            {
                "pht_key": "4d512d75-0f26-47bf-948a-0ca320c9ddba",
                "pht_code": "Mobile Work"
            },
            {
                "pht_key": "98509346-50a9-447f-aceb-3cfdcfe43195",
                "pht_code": "Work"
            }
        ]
    }
}

 

Was this article helpful?
0 out of 0 found this helpful