https://github.com/k8scat/aliyun-api-gateway-sign-golang
Unofficial golang sdk for Aliyun API Gateway.
https://github.com/k8scat/aliyun-api-gateway-sign-golang
aliyun api-gateway golang
Last synced: 3 months ago
JSON representation
Unofficial golang sdk for Aliyun API Gateway.
- Host: GitHub
- URL: https://github.com/k8scat/aliyun-api-gateway-sign-golang
- Owner: k8scat
- License: mit
- Created: 2022-01-27T09:11:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-27T10:00:28.000Z (over 3 years ago)
- Last Synced: 2025-07-04T18:18:06.473Z (3 months ago)
- Topics: aliyun, api-gateway, golang
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aliyun-api-gateway-sign-golang
Unofficial golang sdk for [Aliyun API Gateway](https://www.aliyun.com/product/apigateway?spm=5176.19720258.J_8058803260.53.c89b2c4akF0F92).
## Install
```shell
go get github.com/k8scat/aliyun-api-gateway-sign-golang
```## Usage
```go
package mainimport (
"fmt"
"github.com/k8scat/aliyun-api-gateway-sign-golang"
"net/http"
)func main() {
appKey := ""
appSecret := ""
api := sign.NewAPIGateway(appKey, appSecret)rawurl := ""
req, err := http.NewRequest(http.MethodGet, rawurl, nil)
if err != nil {
panic(err)
}err = api.Sign(req)
if err != nil {
panic(err)
}resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
fmt.Println(resp.StatusCode)
}
```## Used by
[k8scat/Articli](https://github.com/k8scat/Articli)
## License
[MIT](./LICENSE)