Documentation ¶
Overview ¶
Package comment 图文消息留言管理
Index ¶
- func Close(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func Delete(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func List(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func MarkElect(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func Open(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func ReplyAdd(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func ReplyDelete(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func UnMarkElect(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
关闭已群发文章评论
POST https://api.weixin.qq.com/cgi-bin/comment/close?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/comment" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := comment.Close(ctx, payload) fmt.Println(resp, err) }
Output:
func Delete ¶
func Delete(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
删除评论
POST https://api.weixin.qq.com/cgi-bin/comment/delete?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/comment" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := comment.Delete(ctx, payload) fmt.Println(resp, err) }
Output:
func List ¶
func List(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
查看指定文章的评论数据
POST https://api.weixin.qq.com/cgi-bin/comment/list?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/comment" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := comment.List(ctx, payload) fmt.Println(resp, err) }
Output:
func MarkElect ¶
func MarkElect(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
将评论标记精选
POST https://api.weixin.qq.com/cgi-bin/comment/markelect?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/comment" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := comment.MarkElect(ctx, payload) fmt.Println(resp, err) }
Output:
func Open ¶
func Open(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
打开已群发文章评论
POST https://api.weixin.qq.com/cgi-bin/comment/open?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/comment" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := comment.Open(ctx, payload) fmt.Println(resp, err) }
Output:
func ReplyAdd ¶
func ReplyAdd(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
回复评论
POST https://api.weixin.qq.com/cgi-bin/comment/reply/add?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/comment" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := comment.ReplyAdd(ctx, payload) fmt.Println(resp, err) }
Output:
func ReplyDelete ¶
func ReplyDelete(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
删除回复
POST https://api.weixin.qq.com/cgi-bin/comment/reply/delete?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/comment" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := comment.ReplyDelete(ctx, payload) fmt.Println(resp, err) }
Output:
func UnMarkElect ¶
func UnMarkElect(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
将评论取消精选
POST https://api.weixin.qq.com/cgi-bin/comment/unmarkelect?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/comment" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := comment.UnMarkElect(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.