job

package
v1.0.0-beta.10 Latest Latest
Warning

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

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

Documentation

Overview

Package job 服务号对话能力(原微信导购助手)/群发任务

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGuideMassendJob

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

添加群发任务

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func CancelGuideMassendJob

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

取消群发任务

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func GetGuideMassendJob

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

获取指定群发任务信息

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func GetGuideMassendJobList

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

获取群发任务列表

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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

	fmt.Println(resp, err)
}
Output:

func UpdateGuideMassendJob

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

修改群发任务

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

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

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *offiaccount.OffiAccount

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