living

package
v0.0.0-...-b3dc21d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package living 家校应用/上课直播

Index

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/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/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

func GetLivingInfo(ctx *corporation.App, params url.Values) (resp []byte, err error)

获取直播详情

See: https://work.weixin.qq.com/api/doc/90000/90135/93740

GET https://qyapi.weixin.qq.com/cgi-bin/school/living/get_living_info?access_token=ACCESS_TOKEN&livingid=LIVINGID

Example
package main

import (
	"fmt"
	"net/url"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/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/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/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/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/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/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL