Documentation ¶
Overview ¶
Package buyer 服务号对话能力(原微信导购助手)/客户管理
Index ¶
- func AddGuideBuyerRelation(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func DelGuideBuyerRelation(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetGuideBuyerRelation(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetGuideBuyerRelationByBuyer(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func RebindGuideAcctForBuyer(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func UpdateGuideBuyerRelation(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
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)
为顾问分配客户
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)
为顾问移除客户
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)
查询指定顾问和客户的关系
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)
查询客户所属顾问
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)
为客户更换顾问
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)
修改客户昵称
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.