This topic describes how to use an SDK generated in the API Gateway console to make API calls. This topic also provides examples to show you how to make a call.
Use SDKs to call APIs
You can use SDKs that are automatically generated in API Gateway to call published APIs in your business system. Specifically:
Download an SDK.
In the left-side navigation pane of the API Gateway console, choose
Call APIs>SDK. On the SDK page, click the Authorized APIs tab, find the API that you want to call, and download the SDK in the SDK column. API Gateway automatically generates SDKs for Objective-C, Android, and Java. For sample code for other programming languages, see the lower part of the page.In the left-side navigation pane of the API Gateway console, choose
Call APIs>SDK. On the SDK page, click the API Groups tab, find the API group to which the API that you want to call belongs, and download the SDK in the SDKs for API Groups column. The SDKs are generated for the entire group. API Gateway automatically generates SDKs for Objective-C, Android, Java, Golang, and TypeScript.
Use an SDK to call an API: You can use a downloaded SDK to call the associated API.
Troubleshoot issues that occur during SDK-based API calls.
Examples on calling APIs
You can use SDKs for multiple programming languages provided in the API Gateway console to call an API. For SDKs, go to the SDK page in the API Gateway console. You can also construct an HTTP or HTTPS request to call an API.