Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dingtalk ¶
type Dingtalk struct { AppID string `json:"app_id" bson:"app_id"` AppSecret string `json:"app_secret" bson:"app_secret"` }
func (*Dingtalk) CodeAuth ¶
func (a *Dingtalk) CodeAuth(req *auth.AuthCodeRequest) error
https://ding-doc.dingtalk.com/doc#/serverapi3/mrugr3 Step 1: To https://oapi.dingtalk.com/connect/qrconnect?appid=APPID&response_type=code&scope=snsapi_login&state=STATE&redirect_uri=REDIRECT_URI Step 2.2: Within Callback, get user_info.nick POST HTTPS with body { "tmp_auth_code": "23152698ea18304da4d0ce1xxxxx" } == code ? https://oapi.dingtalk.com/sns/getuserinfo_bycode?accessKey=xxx×tamp=xxx&signature=xxx accessKey=appid https://ding-doc.dingtalk.com/doc#/serverapi2/kymkv6
Click to show internal directories.
Click to hide internal directories.