All Products
Search
Document Center

API Gateway:Download and use an SDK

Last Updated:Sep 08, 2023

Use an SDK to call the API Gateway API

  1. Make sure that the API you want to call is the API of the Alibaba Cloud service by the name of API Gateway.

  2. Go to SDK Center. In the left-side navigation pane, click Developer Tools. In the Development & Operation section, click API Gateway.

  3. Click the tab that corresponds to the programming language that you prefer, and follow the on-screen instructions to download an SDK.

  4. For more information about how to use the SDK, see the description in other sections on the tab.

Use an SDK to call an API in API Gateway

  1. Make sure that the API you want to call is an API that is purchased from Alibaba Cloud Marketplace or created in API Gateway by you or your partner.

  2. Obtain an SDK in the API Gateway console. If the API is created by you, choose Open API > SDKs in the left-side navigation pane and follow the on-screen instructions to proceed. Link: SDK. If the API is not created by you, choose Call API > Authorized API SDK in the left-side navigation pane and follow the on-screen instructions to proceed. Link: Authorized APIs. Alternatively, choose Call API > Apps in the left-side navigation pane. On the App Details page, follow the on-screen instructions to generate an SDK.

  3. The instructions on how to use the SDK are included in the SDK download package.

  4. For more information about how to configure the ClientReadTimeout parameter in the SDK, see Configure timeout periods for TCP connections.