All Products
Search
Document Center

OpenAPI Explorer:SDK sample code

Last Updated:Aug 11, 2023

OpenAPI Explorer can automatically generate Java, Python, PHP and Node.js SDK examples based on your API request.

Note

The CommonRequest calling method is used in the SDK examples. For more information, see Use CommonRequest.

Procedure

  1. Log on to OpenAPI Explorer.

  2. In the top navigation bar, click Select a cloud service. In the panel that appears, select the cloud service that you use.

  3. Go to the homepage of the cloud service. In the top navigation bar, click API Debugging. On the page that appears, click the SDK Sample Code tab.

  4. On the SDK Sample Code tab, Java, Python, PHP and Node.js SDK examples can be automatically generated based on your API request.

    image.png