Reference of ProPTT2 CallbackAPI

Description of ProPTT2 CallbackAPI.

Function

Fired a press event of user's function key

1) request
Method POST
URL {CallbackURL}

Body :

field nametypedescriptionoption
cmdstring "fn", event commendmandatory
channelIdnumber channel id of functionmandatory
senderIdstring sender's idmandatory
senderNamestring URLencode(sender's name)mandatory
latitudefloat sender's latitude. if 0, unknownmandatory
longitudefloat sender's longitude. if 0, unknownmandatory

Example :

{
    "cmd" : "fn",
    "channelId" : 3,
    "senderId" : "owner@company.com",
    "senderName" : "user%20name",
    "latitude" : 37.012,
    "longitude" : 127.106
}					
					

Start a video share

Fired a start event of a video share by a user

1) request
Method POST
URL {CallbackURL}

Body :

field nametypedescriptionoption
cmdstring "vc", event commendmandatory
videoChannelIdnumber video channel's idmandatory
senderIdstring sender's idmandatory
senderNamestring URLencode(sender's name)mandatory
URLstring URLencode(video channel's URL)mandatory

Example :

{
    "cmd" : "vc",
    "videoChannelId" : 3,
    "senderId" : "owner@company.com",
    "senderName" : "user%20name",
    "URL" : "rtsp%3A%2F%2F10.0.0.11%3A41344%2F8523"
}					
					

Reference

- Base16, Base64 : RFC 3548(https://www.ietf.org/rfc/rfc3548.txt)