AliyunOpenApiSdk V1
This SDK is packaged according to Alibaba Cloud APIs in the remote procedure call (RPC) style
It can simple call to all of Alibaba Cloud product api
req_data = %{
"PRODUCT" => "apigateway",
"REGIONS"=> "cn-shenzhen",
"Version" => "2016-07-14",
"ALIYUN_ACCESS_KEY" => "<YOUR ALIYUN_ACCESS_KEY>",
"ALI_YUN_ACCESS_SECRET"=> "<YOUR ALI_YUN_ACCESS_SECRET>",
}
path = ""
method = "GET"
body = %{
"Action" => "DescribeApiGroups",
}
AliyunOpenApiSdk.Core.aliyun_api_request(method, path, body, req_data)req_data = %{
"PRODUCT" => "apigateway",
"REGIONS"=> "cn-shenzhen",
"Version" => "2016-07-14",
"ALIYUN_ACCESS_KEY" => "<YOUR ALIYUN_ACCESS_KEY>",
"ALI_YUN_ACCESS_SECRET"=> "<YOUR ALI_YUN_ACCESS_SECRET>",
}
path = ""
method = "POST"
body = %{
"AppName" => "demo",
"Description" => "demo",
"Action" => "CreateApp",
}
AliyunOpenApiSdk.Core.aliyun_api_request(method, path, body, req_data)If available in Hex, the package can be installed
by adding aliyun_open_api_sdk to your list of dependencies in mix.exs:
def deps do
[
{:aliyun_open_api_sdk, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/aliyun_open_api_sdk.