Ai
1 Star 0 Fork 0

千叶/dingding-server-api-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
auth.go 530 Bytes
一键复制 编辑 原始数据 按行查看 历史
千叶 提交于 2022-05-26 10:48 +08:00 . 获取用户token
package dingding
import "encoding/json"
func Auth(GetAuth GetAuthStruct) (GetAuths GetAuthStruct) {
str := HttpGet(AuthUrl + "?redirect_uri+" + GetAuth.RedirectUri + "response_type=" + GetAuth.ResponseType + "client_id=" + GetAuth.ClientId + "scope=" + GetAuth.Scope + "state=" + GetAuth.State + "prompt=" + GetAuth.Prompt + "org_type=" + GetAuth.OrgType + "corpId=" + GetAuth.CorpId + "exclusiveLogin=" + GetAuth.ExclusiveLogin + "exclusiveCorpId=" + GetAuth.ExclusiveCorpId)
json.Unmarshal([]byte(str), &GetAuths)
return
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/qianyejun/dingding-server-api.git
git@gitee.com:qianyejun/dingding-server-api.git
qianyejun
dingding-server-api
dingding-server-api-go
896025f44a29

搜索帮助