customer_service

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Package customer_service 客户联系/企业服务人员管理

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContactWay

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

配置客户联系「联系我」方式

注意:通过API添加的「联系我」不会在管理端进行展示,每个企业可通过API最多配置50万个「联系我」。用户需要妥善存储返回的config_id,config_id丢失可能导致用户无法编辑或删除「联系我」。临时会话模式不占用「联系我」数量,但每日最多添加10万个,并且仅支持单人。临时会话模式的二维码,添加好友完成后该二维码即刻失效。

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

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

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/external_contact/customer_service"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func CloseTempChat

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

结束临时会话

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

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

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/external_contact/customer_service"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func DelContactWay

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

删除企业已配置的「联系我」方式

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

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

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/external_contact/customer_service"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetContactWay

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

获取企业已配置的「联系我」方式

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

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

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/external_contact/customer_service"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetFollowUserList

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

获取配置了客户联系功能的成员列表

企业和第三方服务商可通过此接口获取配置了客户联系功能的成员列表。

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

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

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/external_contact/customer_service"
)

func main() {
	var ctx *corporation.App

	resp, err := customer_service.GetFollowUserList(ctx)

	fmt.Println(resp, err)
}
Output:

func UpdateContactWay

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

更新企业已配置的「联系我」方式

更新企业配置的「联系我」二维码和「联系我」小程序按钮中的信息,如使用人员和备注等。

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

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

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/external_contact/customer_service"
)

func main() {
	var ctx *corporation.App

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