report

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package report 日志

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUnreadCount

func GetUnreadCount(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取用户日志未读数

See: https://ding-doc.dingtalk.com/doc#/serverapi2/yz2vbx

POST https://oapi.dingtalk.com/topapi/report/getunreadcount?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/report"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func List

func List(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取企业用户日志数据

See: https://ding-doc.dingtalk.com/doc#/serverapi2/yknhmg

POST https://oapi.dingtalk.com/topapi/report/list?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/report"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func ListByType

func ListByType(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取日志相关人员列表

See: https://ding-doc.dingtalk.com/doc#/serverapi2/qga9wa

POST https://oapi.dingtalk.com/topapi/report/statistics/listbytype?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/report"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func ListByUserId

func ListByUserId(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取用户可见的日志模板

See: https://ding-doc.dingtalk.com/doc#/serverapi2/lbt9b4

POST https://oapi.dingtalk.com/topapi/report/template/listbyuserid?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/report"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func ReportCommentList

func ReportCommentList(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取日志评论详情

See: https://ding-doc.dingtalk.com/doc#/serverapi2/pmyeg8

POST https://oapi.dingtalk.com/topapi/report/comment/list?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/report"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func ReportReceiverList

func ReportReceiverList(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取日志接收人员列表

See: https://ding-doc.dingtalk.com/doc#/serverapi2/el6lgx

POST https://oapi.dingtalk.com/topapi/report/receiver/list?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/report"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func Simplelist

func Simplelist(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取用户发送日志概要信息

See: https://ding-doc.dingtalk.com/doc#/serverapi2/cp4mxh

POST https://oapi.dingtalk.com/topapi/report/simplelist?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/report"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func Statistics

func Statistics(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取日志统计数据

See: https://ding-doc.dingtalk.com/doc#/serverapi2/lhlow3

POST https://oapi.dingtalk.com/topapi/report/statistics?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/report"
)

func main() {
	var ctx *dingding.App

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