Get/sms/lines

Function


The get/sms/lines is a simple method that returns a list of all SMS lines for a user. 


The same information can also be obtained with the get/myProfile method, but many other redundant fields will also be returned. 


 The request will return the following fields of information:


  • sms_line - the phone number of the SMS line.


  • sms_linename  -  the name associated with the SMS line


Parameters


None are required. The Limit and Offset optional parameters may be used if dealing with a large list of lines (rarely the case.)


Only the User name and Password for the relevant account need to be supplied using basic authorization on your API client program.


Example


To get the list of SMS lines use this syntax:


webserv.telebroad.com/api/teleconsole/rest/sms/lines



Result:

.

.

.

{

    "error":null,

        "result":        

        [{"sms_line":"13106731860",

        "sms_linename":"Mike Robinson main"},

        {"sms_line":"13106731861",

        "sms_linename":"Mike Robinson backup"}

        ]

}

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.