Skip to content

XiaoK29/ali-signature-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ali-signature-authentication

项目背景

由于工作中使用go语言,阿里那边没有相关的SDK,只能使用摘要签名认证方式调用API方式来调用服务端api,项目基于resty封装具体文档可看该项目使用方法

使用

import client "github.com/XiaoK29/ali-signature-authentication"
var result map[string]any
resp, err := client.NewClient("your_APPKey", "your_APPSecret").SetContext(context.Background()).
		SetQueryParam("alipayUid", "xxxxxxxxxxxxxxxx").
		SetResult(&result).
		GET("https://test.com/xxxx")
fmt.Println(result)
fmt.Println(resp.StatusCode())
fmt.Println(resp.String())
fmt.Println(resp.Header())

About

阿里云使用摘要签名认证方式调用API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages