buyer

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 buyer 服务号对话能力(原微信导购助手)/客户管理

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGuideBuyerRelation

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

为顾问分配客户

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func DelGuideBuyerRelation

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

为顾问移除客户

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func GetGuideBuyerRelation

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

查询指定顾问和客户的关系

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func GetGuideBuyerRelationByBuyer

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

查询客户所属顾问

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func RebindGuideAcctForBuyer

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

为客户更换顾问

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func UpdateGuideBuyerRelation

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

修改客户昵称

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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