dingTalkApi

package
v1.17.1-beta1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ContactClient *contact_1_0.Client
	OauthClient   *oauth2_1_0.Client
	Config
}

func New

func New(c Config) *Client

func (Client) GetUserInfo

func (c Client) GetUserInfo(accessToken string) (*contact_1_0.GetUserResponse, error)

func (Client) GetUserToken

func (c Client) GetUserToken(authCode string) (*oauth2_1_0.GetUserTokenResponse, error)
func (c Client) LoginLink(selfDomain, state string) string

type Config

type Config struct {
	ClientID string
	Secret   string
}

Jump to

Keyboard shortcuts

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