1 Star 0 Fork 0

ryanzl / shopeego

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
shopeego_test.go 495 Bytes
一键复制 编辑 原始数据 按行查看 历史
ryanzl 提交于 2021-08-10 10:25 . 增加取消店铺授权功能
package shopeego
import (
"fmt"
"testing"
)
func TestShopeeClient_CancelAuthPartner(t *testing.T) {
// 初始化一個 Shopee 客戶端。
client := NewClient(&ClientOptions{
Secret: "a356da03376efcad0c88d440788aa4c1ed33bedb226edf7e5e4e975a85993437",
IsSandbox: false,
})
partnerId := 2000578
ret := client.CancelAuthPartner(&CancelAuthPartnerRequest{
PartnerID: int64(partnerId),
Redirect: "http://ynxs.devtech.top/shopee/authCb",
})
fmt.Println(ret) // 輸出:yamiodymel
}
1
https://gitee.com/ryanzl/shopeego.git
git@gitee.com:ryanzl/shopeego.git
ryanzl
shopeego
shopeego
master

搜索帮助