Documentation ¶
Overview ¶
Package corp_group 企业互联
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetToken ¶
func GetToken(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取下级企业的access_token
获取应用可见范围内下级企业的access_token,该access_token可用于调用下级企业通讯录的只读接口。
See: https://work.weixin.qq.com/api/doc/90000/90135/93359
POST https://qyapi.weixin.qq.com/cgi-bin/corpgroup/corp/gettoken?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/corp_group" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := corp_group.GetToken(ctx, payload) fmt.Println(resp, err) }
Output:
func ListAppShareInfo ¶
func ListAppShareInfo(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取应用共享信息
上级企业通过该接口获取某个应用分享给的所有企业列表。特别注意,对于有敏感权限的应用,需要下级企业确认后才能共享成功,若下级企业未确认,则不会存在于该接口的返回列表
See: https://work.weixin.qq.com/api/doc/90000/90135/93403
POST https://qyapi.weixin.qq.com/cgi-bin/corpgroup/corp/list_app_share_info?access_token=ACCESS_TOKEN
func TransferSession ¶
func TransferSession(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取下级企业的小程序session
上级企业通过该接口转换为下级企业的小程序session
See: https://work.weixin.qq.com/api/doc/90000/90135/93355
POST https://qyapi.weixin.qq.com/cgi-bin/miniprogram/transfer_session?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/corp_group" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := corp_group.TransferSession(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.