Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fengxq2014/aliyun-signature
阿里云请求参数签名
https://github.com/fengxq2014/aliyun-signature
aliyun aliyun-sdk aliyun-signature
Last synced: 27 days ago
JSON representation
阿里云请求参数签名
- Host: GitHub
- URL: https://github.com/fengxq2014/aliyun-signature
- Owner: Fengxq2014
- License: mit
- Created: 2017-08-22T07:35:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-19T09:30:24.000Z (about 6 years ago)
- Last Synced: 2024-06-21T00:15:09.489Z (6 months ago)
- Topics: aliyun, aliyun-sdk, aliyun-signature
- Language: Go
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aliyun-signature
阿里云请求参数签名## 用法
`import "github.com/Fengxq2014/aliyun-signature/signature"`### 生成get请求地址
```golang
signature.ComposeURL(inUrlValues, "testKeySecret", "http://vod.cn-shanghai.aliyuncs.com")
```### 对url.Values排序并转义特殊字符
```golang
signature.SortQueryString(url.Values)
```### 对string进行签名
```golang
signature.ComputeSignature(sortStr, accessSecret, "")
// 最后一个参数为空时为"GET"
```## License ##
This library is distributed under the MIT License found in the [LICENSE](./LICENSE)
file.