SDK reference (2023-03-30)

Updated at:

Function Compute SDKs let you create and update functions, upload code, and manage triggers without writing low-level API calls. Focus on your business logic rather than on underlying operation and maintenance.

SDKs

SDK Download URL Installation Quick-start guide
Go SDK go-fc-20230330 go get github.com/alibabacloud-go/fc-20230330/v4 Get started with Alibaba Cloud Darabonba SDK for Go
Java SDK java-fc-20230330 Maven (see below) Get started with Alibaba Cloud Darabonba SDK for Java
Python 3 SDK python3-fc-20230330 pip install alibabacloud_fc20230330 Get started with Alibaba Cloud Darabonba SDK for Python
PHP SDK php-fc-20230330 composer require alibabacloud/fc-20230330 Get started with Alibaba Cloud Darabonba SDK for PHP
Node.js SDK nodejs-fc-20230330 npm install @alicloud/fc20230330 Get started with Alibaba Cloud Darabonba SDK for Node.js
C# SDK csharp-fc-20230330 dotnet add package AlibabaCloud.SDK.FC20230330 Get started with Alibaba Cloud Darabonba SDK for .NET

Java SDK installation

Add the following dependency to your pom.xml:

<dependency>
  <groupId>com.aliyun</groupId>
  <artifactId>fc20230330</artifactId>
  <version>4.3.5</version>
</dependency>

Try SDK examples in OpenAPI Explorer

OpenAPI Explorer provides runnable API-level demos for every supported SDK language. Test API calls directly in the browser before integrating them into your application.

Before running the sample code, set the following parameters:

Parameter Description Where to find it
${endpoint} The Function Compute endpoint Endpoints
${accessKeyId} Your AccessKey ID. Reuse an existing AccessKey pair, or see Create an AccessKey pair. Resource Access Management (RAM) console, or see View the information about AccessKey pairs of a RAM user
${accessKeySecret} Your AccessKey secret of the same AccessKey pair Same as above
Warning

To reduce the risk of AccessKey leakage, the AccessKey secret is displayed only once when the AccessKey pair is created and cannot be viewed afterwards. Store the AccessKey secret in a secure location.