destroy call session
POST
/destroy
destroy call session
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
session_id
integer
required
The call history entry ID.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/call_sessions/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"session_id": 111
}'
Responses
404
User not found
200
Successful operation
400
Invalid call session id supplied
Sample Response
create call session
POST
/create
create call session
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
call_to
array
required
callee -
call_from
string
required
caller
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/call_sessions/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"call_from": 111
}'
Responses
404
User not found
200
Successful operation
400
Invalid call_from or call_to supplied
Sample Response
Retrieve a collection of call history entry.
GET
/list
Retrieve a collection of call history entry.
Path parameters
-
access_token
string
required
token to be passed as a header -
pagination
integer
required
The pagination of paging. -
pagesize
integer
required
The size of paging. -
sort_by
string
optional
Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/call_sessions/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
pagesize
integer
-
count
integer
-
pagination
integer
-
call_hitorys
array
-
sort_by
string
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}