tag

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package tag 服务号对话能力(原微信导购助手)/标签管理

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGuideBuyerDisplayTag

func AddGuideBuyerDisplayTag(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

设置自定义客户信息

See: https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/tag-account/shopping-guide.addGuideBuyerDisplayTag.html

POST https://api.weixin.qq.com/cgi-bin/guide/addguidebuyerdisplaytag?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/guide/tag"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func AddGuideBuyerTag

func AddGuideBuyerTag(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

为客户设置标签

See: https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/tag-account/shopping-guide.addGuideBuyerTag.html

POST https://api.weixin.qq.com/cgi-bin/guide/addguidebuyertag?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/guide/tag"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func AddGuideTagOption

func AddGuideTagOption(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

为标签添加可选值

See: https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/tag-account/shopping-guide.addGuideTagOption.html

POST https://api.weixin.qq.com/cgi-bin/guide/addguidetagoption?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/guide/tag"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func DelGuideBuyerTag

func DelGuideBuyerTag(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

删除客户标签

See: https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/tag-account/shopping-guide.delGuideBuyerTag.html

POST https://api.weixin.qq.com/cgi-bin/guide/delguidebuyertag?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/guide/tag"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func Delguidetagoption

func Delguidetagoption(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

删除指定标签类型

See: https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/tag-account/shopping-guide.delguidetagoption.html

POST https://api.weixin.qq.com/cgi-bin/guide/delguidetagoption?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/guide/tag"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func GetGuideBuyerDisplayTag

func GetGuideBuyerDisplayTag(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

获取自定义客户信息

See: https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/tag-account/shopping-guide.getGuideBuyerDisplayTag.html

POST https://api.weixin.qq.com/cgi-bin/guide/getguidebuyerdisplaytag?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/guide/tag"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func GetGuideBuyerTag

func GetGuideBuyerTag(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

查询客户标签

See: https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/tag-account/shopping-guide.getGuideBuyerTag.html

POST https://api.weixin.qq.com/cgi-bin/guide/getguidebuyertag?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/guide/tag"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func GetGuideTagOption

func GetGuideTagOption(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

获取标签和可选值

See: https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/tag-account/shopping-guide.getGuideTagOption.html

POST https://api.weixin.qq.com/cgi-bin/guide/getguidetagoption?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/guide/tag"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func NewGuideTagOption

func NewGuideTagOption(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

/cgi-bin/guide/newguidetagoption

See: https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/tag-account/shopping-guide.newGuideTagOption.html

POST https://api.weixin.qq.com/cgi-bin/guide/newguidetagoption?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/guide/tag"
)

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func QueryGuideBuyerByTag

func QueryGuideBuyerByTag(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)

根据标签值筛选客户

See: https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/tag-account/shopping-guide.queryGuideBuyerByTag.html

POST https://api.weixin.qq.com/cgi-bin/guide/queryguidebuyerbytag?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/offiaccount"
	"github.com/fastwego/offiaccount/apis/guide/tag"
)

func main() {
	var ctx *offiaccount.OffiAccount

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