Download and use an SDK

更新时间:
复制 MD 格式

API Gateway provides SDKs for multiple programming languages. Use an SDK to call the API Gateway service API or an API that you manage in API Gateway.

Use an SDK to call the API Gateway API

Use this path to call the Alibaba Cloud API Gateway service API (for example, to create or manage APIs programmatically).

  1. Confirm that the API you want to call belongs to the Alibaba Cloud API Gateway service.

  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 for your preferred programming language and download the SDK.

  4. For usage instructions, see the other sections on the tab.

Use an SDK to call an API in API Gateway

Use this path to call an API that was created in API Gateway by you or your partner, or an API purchased from Alibaba Cloud Marketplace.

  1. Confirm that the API you want to call was created in API Gateway or purchased from Alibaba Cloud Marketplace.

  2. Get the SDK from the API Gateway console based on how the API was created:

    • If you created the API: In the left-side navigation pane, choose Open API > SDKs. Direct link: SDK.

    • If someone else created the API: In the left-side navigation pane, choose Call API > Authorized API SDK. Direct link: Authorized APIs. Alternatively, choose Call API > Apps, open the App Details page, and generate an SDK.

  3. Follow the usage instructions included in the SDK download package.

  4. To configure the ClientReadTimeout parameter, see Configure timeout periods for TCP connections.