Documentation ¶
Overview ¶
Package living 家校应用/上课直播
Index ¶
- func DeleteReplayData(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func GetLivingInfo(ctx *corporation.App, params url.Values) (resp []byte, err error)
- func GetUnwatchStat(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func GetUserAllLivingId(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func GetWatchStat(ctx *corporation.App, payload []byte) (resp []byte, err error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteReplayData ¶
func DeleteReplayData(ctx *corporation.App, payload []byte) (resp []byte, err error)
删除直播回放
See: https://work.weixin.qq.com/api/doc/90000/90135/93743
POST https://qyapi.weixin.qq.com/cgi-bin/living/delete_replay_data?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/arkii/wxwork/corporation" "github.com/arkii/wxwork/corporation/apis/school_app/living" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := living.DeleteReplayData(ctx, payload) fmt.Println(resp, err) }
Output:
func GetLivingInfo ¶
获取直播详情
See: https://work.weixin.qq.com/api/doc/90000/90135/93740
Example ¶
package main import ( "fmt" "net/url" "github.com/arkii/wxwork/corporation" "github.com/arkii/wxwork/corporation/apis/school_app/living" ) func main() { var ctx *corporation.App params := url.Values{} resp, err := living.GetLivingInfo(ctx, params) fmt.Println(resp, err) }
Output:
func GetUnwatchStat ¶
func GetUnwatchStat(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取未观看直播统计
通过该接口可以获取未观看直播的学生统计,学生的家长必须是已经关注「学校通知」才会纳入统计范围。
See: https://work.weixin.qq.com/api/doc/90000/90135/93742
POST https://qyapi.weixin.qq.com/cgi-bin/school/living/get_unwatch_stat?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/arkii/wxwork/corporation" "github.com/arkii/wxwork/corporation/apis/school_app/living" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := living.GetUnwatchStat(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUserAllLivingId ¶
func GetUserAllLivingId(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取老师直播ID列表
通过此接口可以获取指定老师的所有直播ID
See: https://work.weixin.qq.com/api/doc/90000/90135/93739
POST https://qyapi.weixin.qq.com/cgi-bin/living/get_user_all_livingid?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/arkii/wxwork/corporation" "github.com/arkii/wxwork/corporation/apis/school_app/living" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := living.GetUserAllLivingId(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/93741
POST https://qyapi.weixin.qq.com/cgi-bin/school/living/get_watch_stat?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/arkii/wxwork/corporation" "github.com/arkii/wxwork/corporation/apis/school_app/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.