welink-api-go

module
v0.0.0-...-e82b790 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT

README

Environment for config

WELINK_CORP_ID=AppId
WELINK_CORP_SECRET=AppSecret

WELINK_TEST_UID='for unit test only'

Usage


import "fhyx.online/welink-api-go/welink"


api := NewAPI() // or New(appId, appSecret)

deptId := 0
recursive := false
data, err := api.ListDepartment(deptId, recursive)

uid := "yourUID"
at := "uid" // uid,mobile,cuid
user, err := api.GetUser(uid, at)

TODO

  • Sync users
  • Sync department

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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