Documentation ¶
Index ¶
- func GetAccessToken(clientId string, clientSecret string, code string) (*dingtalkoauth2_1_0.GetUserTokenResponse, error)
- func GetFriendContact(accessToken string, unionId string) (*dingtalkcontact_1_0.GetUserResponse, error)
- func GetUserContact(accessToken string) (*dingtalkcontact_1_0.GetUserResponse, error)
- func RefreshAccessToken(clientId string, clientSecret string, code string, refreshToken string) (*dingtalkoauth2_1_0.GetUserTokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccessToken ¶
func GetAccessToken(clientId string, clientSecret string, code string) (*dingtalkoauth2_1_0.GetUserTokenResponse, error)
GetAccessToken 第一次获取AccessToken调用,返回AccessToken,ExpireTimer和RefreshToken.
func GetFriendContact ¶
func GetFriendContact(accessToken string, unionId string) (*dingtalkcontact_1_0.GetUserResponse, error)
func GetUserContact ¶
func GetUserContact(accessToken string) (*dingtalkcontact_1_0.GetUserResponse, error)
func RefreshAccessToken ¶
func RefreshAccessToken(clientId string, clientSecret string, code string, refreshToken string) (*dingtalkoauth2_1_0.GetUserTokenResponse, error)
RefreshAccessToken 超时7200s,需要刷新AccessToken.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.