tencent cloud

该页面目前只支持英文,你浏览的语言正在准备中。
关闭
全部产品文档
APIs
Request Structure Overview
最后更新时间:2024-12-18 17:35:00
Request Structure Overview
最后更新时间: 2024-12-18 17:35:00
The call to a TencentCloud API is done by sending a request to the server address of the API and adding the corresponding request parameters to the request based on the API description. The structure of a TencentCloud API request consists of service address, communication protocol, request method, request parameters, and character encoding as detailed below:

Service Address

The service access address of TencentCloud API depends on the specific module. For more information, please see the description of each API.

Communication Protocol

Most TencentCloud APIs communicate over HTTPS, providing highly secure communication tunnels.

Request Method

TencentCloud API supports both POST and GET requests.
Note:

1. POST and GET requests cannot be mixed. If GET is used, parameters will be taken from the query string. If POST is used, parameters will be taken from the request body, and parameters in the query string will be ignored. The parameter format rules of the two request methods are identical. GET requests are generally used. If the parameter string is too long, POST is recommended.
2. Parameters sent in GET requests have to be URL-encoded. This is not needed for POST requests.
3. The maximum length of a GET request varies by browser and server settings. For example, the limit is 2 KB in Internet Explorer and 8 KB in Firefox. For long API requests with a lot of parameters, we recommend you use the POST method so as to avoid request failure due to overlong string.
4. For POST requests, the input parameters should be in the format of x-www-form-urlencoded, because TencentCloud API gets request parameters from $_POST.

Request Parameters

Two types of request parameters are required for each TencentCloud API request: common ones and API ones. Common request parameters are required for every API (please see Common Request Parameters), while API request parameters are specific to each API (please see "Request Parameters" in each API document).

Character Encoding

Both the request and returned result of TencentCloud API are encoded with the UTF-8 character set.
本页内容是否解决了您的问题?
您也可以 联系销售 提交工单 以寻求帮助。

文档反馈

联系我们

联系我们,为您的业务提供专属服务。

技术支持

如果你想寻求进一步的帮助,通过工单与我们进行联络。我们提供7x24的工单服务。

7x24 电话支持
中国香港
+852 800 906 020 (免费)
美国
+1 844 606 0804 (免费)
英国
+44 808 196 4551 (免费)
加拿大
+1 888 605 7930 (免费)
澳大利亚
+61 1300 986 386 (免费)
EdgeOne 热线
+852 300 80699
更多本地服务热线陆续新增中