Get visible lines of user


This request returns a list of visble phone lines the current can see.

Resource

GET /me/visible_lines

Payload

None

Response

Context

Authorization

User

Errors

Example

Request
GET https://xelion.nl/api/v1/master/me/visible_lines
Response
{
    "data": [
        {
            "object": {
                "commonName": "Telefoonaansluiting Arno",
                "oid": "1651130",
                "objectType": "XCCPhoneLine"
            },
            "links": [
                {
                    "rel": "self",
                    "href": "https://xelion.nl/api/v1/master/phonelines/1651130",
                    "method": "GET"
                }
            ]
        },
        {
            "object": {
                "commonName": "Support",
                "oid": "1651614",
                "objectType": "XCCPhoneLine"
            },
            "links": [
                {
                    "rel": "self",
                    "href": "https://xelion.nl/api/v1/master/phonelines/1651614",
                    "method": "GET"
                }
            ]
        },
        {
            "object": {
                "commonName": "Sales",
                "oid": "1651626",
                "objectType": "XCCPhoneLine"
            },
            "links": [
                {
                    "rel": "self",
                    "href": "https://xelion.nl/api/v1/master/phonelines/1651626",
                    "method": "GET"
                }
            ]
        }
    ],
    "meta": {
        "links": [
            {
                "rel": "refresh",
                "href": "https://xelion.nl/api/v1/master/me/visible_lines",
                "method": "GET"
            },
            {
                "rel": "next",
                "href": "https://xelion.nl/api/v1/master/me/visible_lines?after=1651626",
                "method": "GET"
            },
            {
                "rel": "previous",
                "href": "https://xelion.nl/api/v1/master/me/visible_lines?before=1651130",
                "method": "GET"
            }
        ],
        "paging": {
            "previousId": "1651130",
            "nextId": "1651626"
        }
    }
}