marketcode

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 marketcode 一物一码

Index

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)

申请二维码

See: https://developers.weixin.qq.com/doc/offiaccount/Unique_Item_Code/Unique_Item_Code_API_Documentation.html

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)

下载二维码包

See: https://developers.weixin.qq.com/doc/offiaccount/Unique_Item_Code/Unique_Item_Code_API_Documentation.html

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)

查询二维码申请单

See: https://developers.weixin.qq.com/doc/offiaccount/Unique_Item_Code/Unique_Item_Code_API_Documentation.html

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)

激活二维码

See: https://developers.weixin.qq.com/doc/offiaccount/Unique_Item_Code/Unique_Item_Code_API_Documentation.html

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)

查询二维码激活状态

See: https://developers.weixin.qq.com/doc/offiaccount/Unique_Item_Code/Unique_Item_Code_API_Documentation.html

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

See: https://developers.weixin.qq.com/doc/offiaccount/Unique_Item_Code/Unique_Item_Code_API_Documentation.html

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL