Documentation ¶
Overview ¶
Package ticket 特殊票券
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoardingPassCheckin ¶
func BoardingPassCheckin(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
更新飞机票信息
See: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Special_ticket.html
POST https://api.weixin.qq.com/card/boardingpass/checkin?access_token=TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/card/ticket" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := ticket.BoardingPassCheckin(ctx, payload) fmt.Println(resp, err) }
Output:
func MeetingTicketUpdateUser ¶
func MeetingTicketUpdateUser(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
更新会议门票
持调用“更新会议门票”接口update 入场时间、区域、座位等信息
See: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Special_ticket.html
POST https://api.weixin.qq.com/card/meetingticket/updateuser?access_token=TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/card/ticket" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := ticket.MeetingTicketUpdateUser(ctx, payload) fmt.Println(resp, err) }
Output:
func MovieTicketUpdateUser ¶
func MovieTicketUpdateUser(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
更新电影票
领取电影票后通过调用“更新电影票”接口update电影信息及用户选座信息
See: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Special_ticket.html
POST https://api.weixin.qq.com/card/movieticket/updateuser?access_token=TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/card/ticket" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := ticket.MovieTicketUpdateUser(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.