living

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 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 GetLivingInfo

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

获取直播详情

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

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

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.

Jump to

Keyboard shortcuts

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