# README
Go SDK for Aliyun
This is not a typical SDK as it won't try to provide all APIs.
For the complete APIs see the official https://github.com/aliyun/alibaba-cloud-sdk-go.
Products & APIs
STS
- AssumeRole
- Cache
MTS
- Transcode-Job
Live
- Record create & decribe
Other repo: https://github.com/BPing/aliyun-live-go-sdk
OSS
https://github.com/aliyun/aliyun-oss-go-sdk is good enough.
MNS
- Different Restful APIs and authorization
- Queue & Messages
ACM
- Get/listen config
Usage
The typical usage is:
s := aliyun.NewSigner("id", "secret")
api := YourImplementedAPI{}
var resp APIResponseType
// just use Get for most APIs
err := aliyun.Get(&http.Client{}, s, api, "host", &resp)
// which equals to
f := json.Unmarshal // or xml.Unmarshal if you API use XML
url := "host" + ? + s.Sign(api)
rawResponse, err := http.Get(url) // http level error if any
err = HandleResp(rawResponse, f, &resp) // return a CanonicalizedError if any
License
MIT