Documentation ¶
Overview ¶
Package linked_corp 通讯录管理/互联企业
Index ¶
- func DepartmentList(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func Get(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func GetPermList(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func SimpleList(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func UserList(ctx *corporation.App, payload []byte) (resp []byte, err error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DepartmentList ¶
func DepartmentList(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取互联企业部门列表
See: https://work.weixin.qq.com/api/doc/90000/90135/93170
POST https://qyapi.weixin.qq.com/cgi-bin/linkedcorp/department/list?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/contact/linked_corp" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := linked_corp.DepartmentList(ctx, payload) fmt.Println(resp, err) }
Output:
func Get ¶
func Get(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取互联企业成员详细信息
See: https://work.weixin.qq.com/api/doc/90000/90135/93171
POST https://qyapi.weixin.qq.com/cgi-bin/linkedcorp/user/get?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/contact/linked_corp" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := linked_corp.Get(ctx, payload) fmt.Println(resp, err) }
Output:
func GetPermList ¶
func GetPermList(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取应用的可见范围
本接口只返回互联企业中非本企业内的成员和部门的信息,如果要获取本企业的可见范围,请调用“获取应用”接口
See: https://work.weixin.qq.com/api/doc/90000/90135/93172
POST https://qyapi.weixin.qq.com/cgi-bin/linkedcorp/agent/get_perm_list?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/contact/linked_corp" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := linked_corp.GetPermList(ctx, payload) fmt.Println(resp, err) }
Output:
func SimpleList ¶
func SimpleList(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取互联企业部门成员
See: https://work.weixin.qq.com/api/doc/90000/90135/93168
POST https://qyapi.weixin.qq.com/cgi-bin/linkedcorp/user/simplelist?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/contact/linked_corp" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := linked_corp.SimpleList(ctx, payload) fmt.Println(resp, err) }
Output:
func UserList ¶
func UserList(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取互联企业部门成员详情
See: https://work.weixin.qq.com/api/doc/90000/90135/93169
POST https://qyapi.weixin.qq.com/cgi-bin/linkedcorp/user/list?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/contact/linked_corp" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := linked_corp.UserList(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.