Documentation ¶
Overview ¶
Package material 服务号对话能力(原微信导购助手)/素材管理
Index ¶
- func DelGuideCardMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func DelGuideImageMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func DelGuideWordMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetGuideCardMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetGuideImageMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetGuideWordMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func SetGuideCardMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func SetGuideImageMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func SetGuideWordMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelGuideCardMaterial ¶
func DelGuideCardMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
删除小程序卡片素材
POST https://api.weixin.qq.com/cgi-bin/guide/delguidecardmaterial?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/guide/material" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := material.DelGuideCardMaterial(ctx, payload) fmt.Println(resp, err) }
Output:
func DelGuideImageMaterial ¶
func DelGuideImageMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
删除图片素材
POST https://api.weixin.qq.com/cgi-bin/guide/delguideimagematerial?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/guide/material" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := material.DelGuideImageMaterial(ctx, payload) fmt.Println(resp, err) }
Output:
func DelGuideWordMaterial ¶
func DelGuideWordMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
删除文字素材
POST https://api.weixin.qq.com/cgi-bin/guide/delguidewordmaterial?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/guide/material" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := material.DelGuideWordMaterial(ctx, payload) fmt.Println(resp, err) }
Output:
func GetGuideCardMaterial ¶
func GetGuideCardMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
查询小程序卡片素材
POST https://api.weixin.qq.com/cgi-bin/guide/getguidecardmaterial?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/guide/material" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := material.GetGuideCardMaterial(ctx, payload) fmt.Println(resp, err) }
Output:
func GetGuideImageMaterial ¶
func GetGuideImageMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
查询图片素材
POST https://api.weixin.qq.com/cgi-bin/guide/getguideimagematerial?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/guide/material" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := material.GetGuideImageMaterial(ctx, payload) fmt.Println(resp, err) }
Output:
func GetGuideWordMaterial ¶
func GetGuideWordMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
查询文字素材
POST https://api.weixin.qq.com/cgi-bin/guide/getguidewordmaterial?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/guide/material" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := material.GetGuideWordMaterial(ctx, payload) fmt.Println(resp, err) }
Output:
func SetGuideCardMaterial ¶
func SetGuideCardMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
添加小程序卡片素材
POST https://api.weixin.qq.com/cgi-bin/guide/setguidecardmaterial?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/guide/material" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := material.SetGuideCardMaterial(ctx, payload) fmt.Println(resp, err) }
Output:
func SetGuideImageMaterial ¶
func SetGuideImageMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
添加图片素材
POST https://api.weixin.qq.com/cgi-bin/guide/setguideimagematerial?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/guide/material" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := material.SetGuideImageMaterial(ctx, payload) fmt.Println(resp, err) }
Output:
func SetGuideWordMaterial ¶
func SetGuideWordMaterial(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
添加文字素材
POST https://api.weixin.qq.com/cgi-bin/guide/setguidewordmaterial?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/guide/material" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := material.SetGuideWordMaterial(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.