Get API call information
API call permissions are managed through applications. Before you call an API, you must obtain the API's call address, application code, AppKey, and AppSecret. This topic describes two ways to obtain this information.
Get call information for your own APIs
Prerequisites
You have created and published an API. For more information, see API development.
Procedure
Log on to the Data Resource Platform console.
In the upper-left corner of the page, click the
icon and select Collaboration.In the top menu bar, click the
icon, select the target workspace, and click Asset Processing.In the navigation pane on the left, click the
icon and choose API Management > API List.On the API Dimension tab of the API List page, click the name of the target API to open the details page.
In the Basic Information section, find the Application and Call Address of the API.
In the upper-right corner of the page, click the
icon and choose System Settings > Application Management.In the application list, find the application to which the API belongs and obtain the Application code. In the Actions column, click View Key to obtain the enabled AppKey and AppSecret.
Get call information for authorized APIs
Prerequisites
You have created an application to make calls. For more information, see Create an application.
You have obtained permission to call the target API. For more information, see Request an API asset.
Procedure
Log on to the Data Resource Platform console.
In the upper-left corner of the page, click the
icon and select Collaboration.In the top menu bar, click the
icon, select the target workspace, and click Asset Processing.In the navigation pane on the left, click the
icon and choose API Management > Authorized APIs.On the Application Dimension tab of the Authorized APIs page, select the target application to obtain the Application code.
Click the
icon, select the target API, and then in the Actions column, click Authorization Details. Obtain the Authentication Method, Access Path, AppKey, and AppSecret.