7 Star 53 Fork 22

北京小程科技有限公司 / 支付宝

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ap_open_auth_token_app_test.go 460 Bytes
一键复制 编辑 原始数据 按行查看 历史
package alipay
import (
"fmt"
"testing"
)
func TestOpenAuthTokenApp(t *testing.T) {
fmt.Println("----------换取应用授权令牌----------")
// 初始化参数
body := OpenAuthTokenAppBody{
GrantType: GrantTypeAuthorizationCode,
Code: "78241ee2c80848a3aec1f82c79eb3X98",
}
// 请求支付
aliRsp, err := testClientNoAppAuthToken.OpenAuthTokenApp(body)
if err != nil {
t.Error(err)
return
}
fmt.Printf("返回值: %+v\n", aliRsp)
}
Go
1
https://gitee.com/xiaochengtech/alipay.git
git@gitee.com:xiaochengtech/alipay.git
xiaochengtech
alipay
支付宝
master

搜索帮助