comment

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 comment 图文消息留言管理

Index

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)

关闭已群发文章评论

See: https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html

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)
删除评论

See: https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html

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)

查看指定文章的评论数据

See: https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html

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)
将评论标记精选

See: https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html

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)

打开已群发文章评论

See: https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html

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)
回复评论

See: https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html

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)
删除回复

See: https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html

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)
将评论取消精选

See: https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html

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.

Jump to

Keyboard shortcuts

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