Vip numbers
Get a collection of VIP numbers.
GET /api/vip_numbers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 100,
"items": [
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"number": "text",
"longitude": "text",
"latitude": "text",
"address": "text",
"created_at": "2017-07-21T17:32:28Z",
"updated_at": "2017-07-21T17:32:28Z",
"expire_at": "2017-07-21T17:32:28Z",
"enabled": true,
"description": "text"
}
]
}
Create a new VIP number.
The VIP number, a string value contains a valid telephone number.
[0-9+]{1,64}
VIP number's longitude.
VIP number's latitude.
The address.
VIP number's expire time.
The RFC 3339 format is defined by The date_time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
2017-07-21T17:32:28Z
Enable the VIP number or not.
VIP number's description.
POST /api/vip_numbers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 142
{
"number": "text",
"longitude": "text",
"latitude": "text",
"address": "text",
"expire_at": "2017-07-21T17:32:28Z",
"enabled": true,
"description": "text"
}
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}
Get details of the VIP number.
The unique ID of VIP number.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
GET /api/vip_numbers/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"number": "text",
"longitude": "text",
"latitude": "text",
"address": "text",
"created_at": "2017-07-21T17:32:28Z",
"updated_at": "2017-07-21T17:32:28Z",
"expire_at": "2017-07-21T17:32:28Z",
"enabled": true,
"description": "text"
}
Update a VIP number.
The unique ID of VIP number.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
The VIP number, a string value contains a valid telephone number.
[0-9+]{1,64}
VIP number's longitude.
VIP number's latitude.
The address.
VIP number's expire time.
The RFC 3339 format is defined by The date_time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
2017-07-21T17:32:28Z
Enable the VIP number or not.
VIP number's description.
POST /api/vip_numbers/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 142
{
"number": "text",
"longitude": "text",
"latitude": "text",
"address": "text",
"expire_at": "2017-07-21T17:32:28Z",
"enabled": true,
"description": "text"
}
No content