customer_assign

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_assign 客户联系/客户分配

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTransferResult

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

查询客户接替结果

企业和第三方可通过此接口查询客户的接替情况。

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetUnassignedList

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

获取离职成员列表

企业和第三方可通过此接口,获取所有离职成员的客户列表,并可进一步调用分配在职或离职成员的客户接口将这些客户重新分配给其他企业成员。

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GroupChatTransfer

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

分配离职成员的客户群

企业可通过此接口,将已离职成员为群主的群,分配给另一个客服成员。

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func Transfer

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

分配在职或离职成员的客户

企业可通过此接口,转接在职成员的客户或分配离职成员的客户给其他成员。

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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