Invocation methods
Updated at:
To call an Outbound Bot API, send an HTTP GET request to its service endpoint. Add the request parameters to the request as specified in the API documentation. After the call is made, the system returns a response. Both the request and the response are encoded in the UTF-8 character set.
Request structure
Outbound Bot APIs are RPC-style. You call an Outbound Bot API by sending an HTTP GET request.
The request structure is as follows:
http://Endpoint/?Action=xx&Parameters
Where:
- Endpoint: The service endpoint for the Outbound Bot API is outboundbot.cn-shanghai.aliyuncs.com.
- Action: The operation to perform, such as calling CreateIntent to create an intent that triggers a dialogue node.
- Version: The API version. The version for Outbound Bot APIs is 2019-12-26.
- Parameters: The request parameters. Separate parameters with an ampersand (&).
Request parameters consist of common parameters and API-specific parameters. Common parameters include information such as the API version and identity verification. For more information, see Common parameters.
The following example shows a call to the CreateIntent operation, which creates an intent that triggers a dialogue node:
Note The examples in this document are formatted for readability.
https://outboundbot.cn-shanghai.aliyuncs.com/?Action=CreateIntent
&Format=xml
&Version=2019-12-26
&Signature=xxxx%xxxx%3D
&SignatureMethod=HMAC-SHA1
&SignatureNonce=15215528852396
&SignatureVersion=1.0
&AccessKeyId=key-test
&TimeStamp=2012-06-01T12:00:00Z
…
Is this page helpful?