| 12345678910111213141516171819202122232425262728 |
- package main
- func init() {
- //devConf := &xnet.DevConf{
- // AppKey: "ding8svryas6vm6ze5xh",
- // AppSecret: "YF77J3t-bORqtZxNH7-RY8Q3znrgpsZDpTiXDqLj-Ns8XRIDZLn6fIwpukOQ1P1o",
- // GetTokenUrl: "https://oapi.dingtalk.com/gettoken",
- // GetDeptUserListUrl: "https://oapi.dingtalk.com/topapi/user/listsimple",
- // Params: map[string]string{},
- // Headers: map[string]string{},
- // Cookie: []*http.Cookie{},
- // DeptId: 554750022,
- //}
- //if err := devConf.GetToken(); err != nil {
- // log.Fatalln(err)
- //}
- //
- //println(devConf.Token)
- //
- //deptUserList, _ := devConf.GetDeptUserList()
- //fmt.Printf("%v\n", deptUserList)
- //workData,_:=core.GetWorkData(30)
- //fmt.Printf("%v\n", workData)
- }
- func main() {
- }
|