Documentation ¶
Overview ¶
Package customer_tag 客户联系/客户标签管理
Index ¶
- func AddCorpTag(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func DelCorpTag(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func EditCorpTag(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func GetCorpTagList(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func MarkTag(ctx *corporation.App, payload []byte) (resp []byte, err error)
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/fastwego/wxwork/corporation" "github.com/fastwego/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/fastwego/wxwork/corporation" "github.com/fastwego/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/fastwego/wxwork/corporation" "github.com/fastwego/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/fastwego/wxwork/corporation" "github.com/fastwego/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/fastwego/wxwork/corporation" "github.com/fastwego/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.