Documentation ¶
Overview ¶
Package living 企业直播
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLivingInfo ¶
获取直播详情
See: https://work.weixin.qq.com/api/doc/90000/90135/92734
Example ¶
package main import ( "fmt" "net/url" "github.com/fastwego/wechat4work/corporation" "github.com/fastwego/wechat4work/corporation/apis/living" ) func main() { var ctx *corporation.App params := url.Values{} resp, err := living.GetLivingInfo(ctx, params) fmt.Println(resp, err) }
Output:
func GetUserLivingid ¶
func GetUserLivingid(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取成员直播ID列表
通过此接口可以获取指定成员指定时间内的所有直播ID
See: https://work.weixin.qq.com/api/doc/90000/90135/92735
POST https://qyapi.weixin.qq.com/cgi-bin/living/get_user_livingid?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/wechat4work/corporation" "github.com/fastwego/wechat4work/corporation/apis/living" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := living.GetUserLivingid(ctx, payload) fmt.Println(resp, err) }
Output:
func GetWatchStat ¶
func GetWatchStat(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取看直播统计
通过该接口可以获取所有观看直播的人员统计
See: https://work.weixin.qq.com/api/doc/90000/90135/92736
POST https://qyapi.weixin.qq.com/cgi-bin/living/get_watch_stat?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/wechat4work/corporation" "github.com/fastwego/wechat4work/corporation/apis/living" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := living.GetWatchStat(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.