wkteam

package
v0.0.0-...-8b17fe9 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient struct {
}

func NewHttpClient

func NewHttpClient() *HttpClient

func (*HttpClient) PostJson

func (h *HttpClient) PostJson(url string, data interface{}, options PostOptions) (body []byte, err error)

type PostOptions

type PostOptions struct {
	Header map[string]string
}

type WkteamApi

type WkteamApi struct {
	BaseUrl string
	AuthKey string
	// contains filtered or unexported fields
}

func NewWkteamApi

func NewWkteamApi(baseUrl string, authKey string) *WkteamApi

func (*WkteamApi) GetAddressList

func (w *WkteamApi) GetAddressList(wId string) (data map[string]interface{}, err error)

func (*WkteamApi) GetAuthKey

func (w *WkteamApi) GetAuthKey(account string, password string) (authKey string, err error)

func (*WkteamApi) GetContact

func (w *WkteamApi) GetContact(wId string, wcIds []string) (data map[string]interface{}, err error)

func (*WkteamApi) GetInfoByWId

func (w *WkteamApi) GetInfoByWId(wId string) (data map[string]interface{}, err error)

获取登录二维码时候,返回的wId,手机完成登录后,通过此wId获取到登录的微信相关信息, 获取到的wcId 就是微信号的唯一ID,后续获取二维码时候带上

func (*WkteamApi) GetLoginPicUrl

func (w *WkteamApi) GetLoginPicUrl(wcId string) (data map[string]interface{}, err error)

func (*WkteamApi) GetOnlineList

func (w *WkteamApi) GetOnlineList() (data map[string]string, err error)

func (*WkteamApi) InitAddressList

func (w *WkteamApi) InitAddressList(wId string) error

func (*WkteamApi) IsOnline

func (w *WkteamApi) IsOnline(wId string) (isOnline bool, err error)

func (*WkteamApi) SecondLogin

func (w *WkteamApi) SecondLogin(wId string) (data map[string]interface{}, err error)

func (*WkteamApi) SendText

func (w *WkteamApi) SendText(wId string, wcId string, content string, at string) error

at 注意传字符串

func (*WkteamApi) SetMsgReciverUrl

func (w *WkteamApi) SetMsgReciverUrl(url string) error

Jump to

Keyboard shortcuts

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