health

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package health 家校应用/健康上报

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHealthReportStat

func GetHealthReportStat(ctx *corporation.App, payload []byte) (resp []byte, err error)

获取健康上报使用统计

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

POST https://qyapi.weixin.qq.com/cgi-bin/health/get_health_report_stat?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/arkii/wxwork/corporation"
	"github.com/arkii/wxwork/corporation/apis/school_app/health"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := health.GetHealthReportStat(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func GetReportAnswer

func GetReportAnswer(ctx *corporation.App, payload []byte) (resp []byte, err error)

获取用户填写答案

通过此接口可以获取指定的健康上报任务详情。

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

POST https://qyapi.weixin.qq.com/cgi-bin/health/get_report_answer?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/arkii/wxwork/corporation"
	"github.com/arkii/wxwork/corporation/apis/school_app/health"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := health.GetReportAnswer(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func GetReportJobInfo

func GetReportJobInfo(ctx *corporation.App, payload []byte) (resp []byte, err error)

获取健康上报任务详情

通过此接口可以获取指定的健康上报任务详情。

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

POST https://qyapi.weixin.qq.com/cgi-bin/health/get_report_job_info?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/arkii/wxwork/corporation"
	"github.com/arkii/wxwork/corporation/apis/school_app/health"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := health.GetReportJobInfo(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func GetReportJobids

func GetReportJobids(ctx *corporation.App, payload []byte) (resp []byte, err error)

获取健康上报任务ID列表

通过此接口可以获取企业当前正在运行的上报任务ID列表。

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

POST https://qyapi.weixin.qq.com/cgi-bin/health/get_report_jobids?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/arkii/wxwork/corporation"
	"github.com/arkii/wxwork/corporation/apis/school_app/health"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := health.GetReportJobids(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