You need to enable JavaScript to run this app.
Container Registry

Container Registry

Copy page
Download PDF
SDK
Viewing SDK sample code
Copy page
Download PDF
Viewing SDK sample code
This topic describes how to search for and view the SDK sample code of the required API in OpenAPI Center.​
Step 1: Obtain the usage instructions for the corresponding API​
View the API list, select the required API for the feature, and view the API documentation to understand the configuration instructions and limits for the request parameters.​
Step 2: Obtain SDK sample code​
  1. Access API Explorer.​
  1. In the API list on the left, search by the name of the target API and find the corresponding API.​
  1. In the middle test section, select the service region and enter the request parameters.​
  1. On the right, select the SDK sample code tab to view the corresponding SDK sample code based on the programming language. The example below uses the GetAuthorizationToken API in Java.​
  • ​​​
Step 3: Configure the code​
The following uses the GetAuthorizationToken API as an example to describe how to read and use the sample code.​
Simply replace the content highlighted in the red box, and substitute AK and SK with your real data.​
​
Programming language​
SDK sample code​
Java​
​​​
​
​
Go​
​
​​​
​
Python​
​​​
​
​
​
Last updated: 2026.10.19 15:45:28