製品の概要
Basic Concepts
ユースケース
機能概要
アカウントシステム
ユーザープロフィールとリレーションシップチェーン
メッセージ管理
グループシステム
Official Account
Audio/Video Call
使用制限
https://xxxxxx/v4/openim_robot_http_svc/send_stream_msg?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
Parameter | Description |
xxxxxx | The dedicated domain name for the country/region where the SDKAppID resides: China: console.tim.qq.comSingapore: adminapisgp.im.qcloud.comSeoul: adminapikr.im.qcloud.comTokyo: adminapijpn.im.qcloud.comFrankfurt: adminapiger.im.qcloud.comSilicon Valley: adminapiusa.im.qcloud.comJakarta: adminapiidn.im.qcloud.com |
v4/openim_robot_http_svc/send_stream_msg | Request API. |
sdkappid | SDKAppID assigned by the IM console when creating an application. |
identifier | |
usersig | |
random | Enter a random 32-bit unsigned integer in the range of [0, 4294967295]. |
contenttype | The request format is fixed as json. |
{"From_Account": "@RBT#my_bot","To_Account": "user01","Chunk": "hello, "}
{"From_Account": "@RBT#my_bot","To_Account": "user01","Chunk": "world","MsgKey": "606781340_3986845397_1706000918","Finish": 1}
Field | Type | Attribute | Description |
From_Account | String | Required | sender UserID (used to specify the message sender account). |
To_Account | String | Required | message receiver UserID. |
Chunk | String | Required | A segment of text in the streaming text message. |
MsgKey | String | Optional. | Leave it blank when calling the API for the first time. From the second call onward, this field must be included. |
Finish | Integer | Optional. | On the last call, flag the streaming output as ended. |
{"ActionStatus":"OK","ErrorInfo":"","ErrorCode":0,"MsgKey":"606781340_3986845397_1706000918"}
Field | Type | Description |
ActionStatus | String | Request processing result: OK: means processing is successful. FAIL: means processing failed. |
ErrorCode | Integer | Error Code: 0: success. Non-zero: Indicates Failure. |
ErrorInfo | String | Error message. |
MsgKey | String | The unique message identifier returned by the IM backend is used for follow-up text output. |
Error Code | Description |
10002 | Internal system error, please retry. |
10004 | Incorrect parameter. Please check the request parameters. |
フィードバック