Retrive IP phones
GET
/phones/list
Retrieves a list of IP phones .
Request
Placeholders
access_token
string
required
Access token is a 32-byte string with validity of 30 seconds.
Sample Request
https://example.com/api/phones/list?access_token=196ACE20C6F34027895F7F95402BB164
Response
Placeholders
counts
integer
required
Counts of IP phones.phones
array
required
Show child attributesCollection of IP phone objects.
Sample Response
{
"counts": 1,
"phones": [
{
"ext": 100,
"vendor": "snom",
"model": "snom760",
"fw_version": "",
"name": "",
"password": 100,
"phone_password": 123456,
"vmpin": 999,
"ip": "192.168.1.101",
"mac": 12345632125
}
]
}
Check IP phone's MAC
GET
/phones/mac_addr/check
Check IP phone's MAC.
Request
Placeholders
access_token
string
required
Access token is a 32-byte string with validity of 30 seconds.mac_address
string
required
MAC of IP phone.
Sample Request
https://example.com/api/phones/mac_addr/check?access_token=196ACE20C6F34027895F7F95402BB164&mac=12345632125
Response
Placeholders
isexist
boolean
required
Sample Response
{
"isexist": false
}
Show Phone's provision
GET
/phones/provsion/show
Check IP phone's MAC.
Request
Placeholders
access_token
string
required
Access token is a 32-byte string with validity of 30 seconds.extension_number
string
required
Sample Request
https://example.com/api/phones/provsion/show?access_token=196ACE20C6F34027895F7F95402BB164&extension_number=100
Response
Placeholders
count
integer
required
phoneinfos
array
required
Show child attributesblfs
array
required
Show child attributes
Sample Response
{
"count": 1,
"phoneinfos": [
{
"phone_id": "1111",
"vendor": "snom",
"mac_address": "123456789",
"fw_version": "",
"xmlfile": "snom.ph.xml",
"extension_number": "100",
"deskphone_password": "123456",
"time_zone_value": 8,
"languages": "chinese",
"ua": "snom760",
"network": "local",
"cfgurl": "http://127.0.0.1:8888/123456789.cfg"
}
]
}
Setting Phone's provision
POST
/phones/provsion
Request
Placeholders
access_token
string
required
Access token is a 32-byte string with validity of 30 seconds.extension_number
string
required
extension_first_name
string
required
extension_last_name
string
required
phoneinfos
array
required
Show child attributesblfs
array
optional
Show child attributes
Sample Request
{
"access_token": "196ACE20C6F34027895F7F95402BB164",
"extension_number": 100
}
Response
Placeholders
Sample Response
Phone's reprovision
POST
/phones/reprovsion
Request
Placeholders
access_token
string
required
Access token is a 32-byte string with validity of 30 seconds.mac_address
string
required
Sample Request
{
"access_token": "196ACE20C6F34027895F7F95402BB164",
"mac_address": 100
}
Response
Placeholders
Sample Response
Reboot Phone
POST
/phones/reboot
Request
Placeholders
access_token
string
required
Access token is a 32-byte string with validity of 30 seconds.mac_address
string
required
Sample Request
{
"access_token": "196ACE20C6F34027895F7F95402BB164",
"mac_address": 100
}
Response
Placeholders