dingTalk

package
v0.0.0-...-41c7706 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL