Skip to content

sing-gor/aliyun_open_api_sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AliyunOpenApiSdk

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

Get Gateway Api Groups

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)

Create A Gateway Api App

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)

Installation

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"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/aliyun_open_api_sdk.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages