Documentation ¶
Overview ¶
Package store 微信小店/功能接口
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UploadImg ¶
func UploadImg(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
上传图片
See: https://developers.weixin.qq.com/doc/offiaccount/Instant_Stores/WeChat_Store_Interface.html
POST https://api.weixin.qq.com/merchant/common/upload_img?access_token=ACCESS_TOKEN&filename=test.png
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/store" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := store.UploadImg(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package express 微信小店/邮费模板管理管理
|
Package express 微信小店/邮费模板管理管理 |
Package group 微信小店/分组管理
|
Package group 微信小店/分组管理 |
Package order 微信小店/订单管理
|
Package order 微信小店/订单管理 |
Package product 微信小店/商品管理
|
Package product 微信小店/商品管理 |
Package shelf 微信小店/货架管理
|
Package shelf 微信小店/货架管理 |
Package stock 微信小店/库存管理
|
Package stock 微信小店/库存管理 |
Click to show internal directories.
Click to hide internal directories.