customer_tag

package
v0.0.0-...-b3dc21d Latest Latest
Warning

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

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

Documentation

Overview

Package customer_tag 客户联系/客户标签管理

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCorpTag

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

添加企业客户标签

企业可通过此接口向客户标签库中添加新的标签组和标签,每个企业最多可配置3000个企业标签。

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

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

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/external_contact/customer_tag"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func DelCorpTag

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

删除企业客户标签

企业可通过此接口删除客户标签库中的标签,或删除整个标签组。

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

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

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/external_contact/customer_tag"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func EditCorpTag

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

编辑企业客户标签

企业可通过此接口编辑客户标签/标签组的名称或次序值。

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

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

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/external_contact/customer_tag"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetCorpTagList

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

获取企业标签库

企业可通过此接口获取企业客户标签详情。

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

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

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/external_contact/customer_tag"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func MarkTag

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

编辑客户企业标签

企业可通过此接口为指定成员的客户添加上由企业统一配置的标签。

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

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

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/external_contact/customer_tag"
)

func main() {
	var ctx *corporation.App

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