1 Star 1 Fork 0

Ostaer / go-workwx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cmd_user_get.go 378 Bytes
一键复制 编辑 原始数据 按行查看 历史
package commands
import (
"fmt"
"gopkg.in/urfave/cli.v2"
)
func cmdUserGet(c *cli.Context) error {
cfg := mustGetConfig(c)
userid := c.Args().Get(0)
app := cfg.MakeWorkwxApp()
// TODO: failed requests currently panics
info, err := app.GetUser(userid)
if err != nil {
fmt.Printf("error = %+v\n", err)
} else {
fmt.Printf("user = %+v\n", info)
}
return err
}
1
https://gitee.com/ostaer/go-workwx.git
git@gitee.com:ostaer/go-workwx.git
ostaer
go-workwx
go-workwx
b16c285aee72

搜索帮助