tencent cloud

Tencent Real-Time Communication

Establishing Callback Configuration

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-10-29 17:23:23

Feature Overview

Administrators can create callbacks through this API.

API description

Note:
If the API is called multiple times, the last result will prevail.

Sample request URL

https://xxxxxx/v1/callback/set?sdkappid=88888888&identifier=administrator&usersig=xxx&random=99999999&contenttype=json

Request parameters

The table below only lists the parameters modified when calling this API and their description. For more information, please refer to REST API Overview.
Parameter
Description
xxxxxx
The reserved domain for the country/region where the SDKAppID is located:
callkit-intl.trtc.tencent-cloud.com
v1/callback/set
Request API
sdkappid
The sdkappid assigned by the console when creating an application
identifier
Must be an Chat App Administrator Account
usersig
The Signature generated by the App Administrator account, for detailed operations, please refer to Generating UserSig
random
Enter a random 32-bit unsigned integer, range 0 to 4294967295
contenttype
The request format fixed value is json

Maximum calling frequency

10 times per second.

Sample request packets

{
"address":"http://www.example.com/callback",
"actions": [
"call_busy",
"normal_end",
"caller_start_call",
"invite_user",
"callee_reject_call"
]
}

Request field description

Field
Type
Attribute
Description
address
String
Mandatory
Callback address, must start with http/https, it is recommended to use the more secure https
actions
Array
Mandatory
Scenarios that require triggering a callback, see the Callback Command List for the list

Sample response packets

{
"errorCode": 0,
"errorMessage": "Success",
"requestId": "a1d8543a9b1daef5d0f0c21517a4bc0a",
"data": "http://www.example.com/callback"
}

Response Packet Field Description

Field
Type
Description
errorCode
Integer
Error code, 0 indicates success
errorMessage
String
Error message
requestId
String
Unique Request ID
data
String
Successful callback address configuration

Error codes

Error code
Description
0
Request succeeded
50001
The current application needs to purchase the TUICallKit Group Call Version Package to use
70001
Callback address must start with http or https


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백