Documentation ¶
Overview ¶
Package marketcode 一物一码
Index ¶
- func ApplyCode(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func ApplyCodeDownload(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func ApplyCodeQuery(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func CodeActive(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func CodeActiveQuery(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func TicketToCode(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCode ¶
func ApplyCode(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
申请二维码
POST https://api.weixin.qq.com/intp/marketcode/applycode?access_token=ACCESSTOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/marketcode" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := marketcode.ApplyCode(ctx, payload) fmt.Println(resp, err) }
Output:
func ApplyCodeDownload ¶
func ApplyCodeDownload(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
下载二维码包
POST https://api.weixin.qq.com/intp/marketcode/applycodedownload?access_token=ACCESSTOKE
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/marketcode" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := marketcode.ApplyCodeDownload(ctx, payload) fmt.Println(resp, err) }
Output:
func ApplyCodeQuery ¶
func ApplyCodeQuery(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
查询二维码申请单
POST https://api.weixin.qq.com/intp/marketcode/applycodequery?access_token=ACCESSTOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/marketcode" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := marketcode.ApplyCodeQuery(ctx, payload) fmt.Println(resp, err) }
Output:
func CodeActive ¶
func CodeActive(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
激活二维码
POST https://api.weixin.qq.com/intp/marketcode/codeactive?access_token=ACCESSTOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/marketcode" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := marketcode.CodeActive(ctx, payload) fmt.Println(resp, err) }
Output:
func CodeActiveQuery ¶
func CodeActiveQuery(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
查询二维码激活状态
POST https://api.weixin.qq.com/intp/marketcode/codeactivequery?access_token=ACCESSTOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/marketcode" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := marketcode.CodeActiveQuery(ctx, payload) fmt.Println(resp, err) }
Output:
func TicketToCode ¶
func TicketToCode(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
code_ticket换code
POST https://api.weixin.qq.com/intp/marketcode/tickettocode?access_token=ACCESSTOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/marketcode" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := marketcode.TicketToCode(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.