customer_group

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 customer_group 客户联系/客户群管理

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

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

获取客户群详情

需注意的是,如果发生群信息变动,会立即收到群变更事件,但是部分信息是异步处理,可能需要等一段时间调此接口才能得到最新结果

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

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

Example
package main

import (
	"fmt"

	"github.com/arkii/wxwork/corporation"
	"github.com/arkii/wxwork/corporation/apis/external_contact/customer_group"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func List

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

获取客户群列表

该接口用于获取配置过客户群管理的客户群列表。

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

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

Example
package main

import (
	"fmt"

	"github.com/arkii/wxwork/corporation"
	"github.com/arkii/wxwork/corporation/apis/external_contact/customer_group"
)

func main() {
	var ctx *corporation.App

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