The Message Queue for Apache RocketMQ API allows you to make API requests by using HTTP, SDKs, and OpenAPI Explorer.
Call API operations by using HTTP
Message Queue for Apache RocketMQ API operations use the RPC protocol. You can call Message Queue for Apache RocketMQ API operations by sending HTTP GET requests.
http://Endpoint/?Action=xx&Parameters
- Endpoint: the endpoint of the Message Queue for Apache RocketMQ API. For more information, see Endpoints.
- Action: the name of the operation that you want to perform. For example, to apply for a token, you must set the Action parameter to ApplyToken.
- Version: the version of the API. For example, the version of the Message Queue for Apache RocketMQ API is 2019-02-14.
- Parameters: the request parameters for the operation. Separate multiple parameters with ampersands
(&).
Request parameters include common request parameters and operation-specific parameters. Common request parameters include the API version and authentication-related parameters. For more information, see Common parameters.
Call API operations by using SDKs
The Message Queue for Apache RocketMQ API supports SDKs in multiple programming languages. The SDKs automatically sign requests for you. For more information, see Obtain an SDK.
Call API operations by using OpenAPI Explorer
OpenAPI Explorer is a visual tool for calling API operations. You can use OpenAPI Explorer to call the API operations of Alibaba Cloud services and the API operations provided in Alibaba Cloud Marketplace. You can call these API operations on the web page of OpenAPI Explorer or through the command-line interface (CLI). In addition, you can use OpenAPI Explorer to view the request and response of each API call and dynamically generate SDK sample code.
You can call API operations by accessing OpenAPI Explorer directly or by using debugging features in the API documentation.