msgaudit

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: 3 Imported by: 0

Documentation

Overview

Package msgaudit 会话内容存档

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSingleAgree

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

获取会话同意情况

企业可通过下述接口,获取会话中外部成员的同意情况

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

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

Example
package main

import (
	"fmt"

	"github.com/arkii/wxwork/corporation"
	"github.com/arkii/wxwork/corporation/apis/msgaudit"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetPermitUserList

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

获取会话内容存档开启成员列表

企业可通过此接口,获取企业开启会话内容存档的成员列表

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

GET https://qyapi.weixin.qq.com/cgi-bin/msgaudit/get_permit_user_list?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/arkii/wxwork/corporation"
	"github.com/arkii/wxwork/corporation/apis/msgaudit"
)

func main() {
	var ctx *corporation.App

	resp, err := msgaudit.GetPermitUserList(ctx)

	fmt.Println(resp, err)
}
Output:

func GetRobotInfo

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

获取机器人信息

通过robot_id获取机器人的名称和创建者

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

GET https://qyapi.weixin.qq.com/cgi-bin/msgaudit/get_robot_info?access_token=ACCESS_TOKEN&robot_id=ROBOT_ID

Example
package main

import (
	"fmt"
	"net/url"

	"github.com/arkii/wxwork/corporation"
	"github.com/arkii/wxwork/corporation/apis/msgaudit"
)

func main() {
	var ctx *corporation.App

	params := url.Values{}
	resp, err := msgaudit.GetRobotInfo(ctx, params)

	fmt.Println(resp, err)
}
Output:

func GroupchatGet

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

获取会话内容存档内部群信息

企业可通过此接口,获取会话内容存档本企业的内部群信息,包括群名称、群主id、公告、群创建时间以及所有群成员的id与加入时间。

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

POST https://qyapi.weixin.qq.com/cgi-bin/msgaudit/groupchat/get?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/arkii/wxwork/corporation"
	"github.com/arkii/wxwork/corporation/apis/msgaudit"
)

func main() {
	var ctx *corporation.App

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