Last updated: 2017-10-17 18:43:59
The calls to Tencent Cloud APIs are achieved by sending requests to the server IP addresses of these APIs and adding relevant request parameters in the requests as described in API descriptions. A request for calling Tencent Cloud API is made up of the following elements:
1. Service Address
The service connection address of Tencent Cloud APIs depends on the modules. For details, refer to descriptions of APIs.
2. Communication Protocol
Most of Tencent Cloud APIs make communication over HTTPS to provide high-security channels.
3. Request Method
Tencent Cloud APIs support both POST and GET requests.
- The two methods cannot be used at the same time. If GET method is used, parameters are obtained from the Querystring. If POST method is used, parameters are obtained from the Request Body, and the parameters in the Querystring will be ignored. The rules for parameter formats are the same for both methods. Generally, GET method is used. If the parameter strings are too long, POST method is used.
- If GET method is used, all request parameters need to be encoded with URL encoding. If POST method is used, this is not needed.**
4. Request Parameters
Two types of parameters are needed for each request for Tencent Cloud APIs - common request parameters and API request parameters. Common request parameters are the parameters common to all APIs (For more information, refer to Common Request Parameters section), while API request parameters are parameters specific to each API (For more information, refer to "Request Parameters" description of each API.)
5. Character Encoding
All requests for Tencent Cloud APIs and returned results use UTF-8 character set for encoding.