Documentation ¶
Overview ¶
Package datacube 数据统计
Index ¶
- func GetArticleSummary(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetArticleTotal(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetInterfaceSummary(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetInterfaceSummaryHour(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUpstreamMsg(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUpstreamMsgDist(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUpstreamMsgDistMonth(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUpstreamMsgDistWeek(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUpstreamMsgHour(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUpstreamMsgMonth(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUpstreamMsgWeek(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUserCumulate(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUserRead(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUserReadHour(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUserShare(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUserShareHour(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func GetUserSummary(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
- func PublisherStat(ctx *offiaccount.OffiAccount, params url.Values) (resp []byte, err error)
Examples ¶
- GetArticleSummary
- GetArticleTotal
- GetInterfaceSummary
- GetInterfaceSummaryHour
- GetUpstreamMsg
- GetUpstreamMsgDist
- GetUpstreamMsgDistMonth
- GetUpstreamMsgDistWeek
- GetUpstreamMsgHour
- GetUpstreamMsgMonth
- GetUpstreamMsgWeek
- GetUserCumulate
- GetUserRead
- GetUserReadHour
- GetUserShare
- GetUserShareHour
- GetUserSummary
- PublisherStat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArticleSummary ¶
func GetArticleSummary(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取图文群发每日数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Graphic_Analysis_Data_Interface.html
POST https://api.weixin.qq.com/datacube/getarticlesummary?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetArticleSummary(ctx, payload) fmt.Println(resp, err) }
Output:
func GetArticleTotal ¶
func GetArticleTotal(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取图文群发总数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Graphic_Analysis_Data_Interface.html
POST https://api.weixin.qq.com/datacube/getarticletotal?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetArticleTotal(ctx, payload) fmt.Println(resp, err) }
Output:
func GetInterfaceSummary ¶
func GetInterfaceSummary(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取接口分析数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Analytics_API.html
POST https://api.weixin.qq.com/datacube/getinterfacesummary?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetInterfaceSummary(ctx, payload) fmt.Println(resp, err) }
Output:
func GetInterfaceSummaryHour ¶
func GetInterfaceSummaryHour(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取接口分析分时数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Analytics_API.html
POST https://api.weixin.qq.com/datacube/getinterfacesummaryhour?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetInterfaceSummaryHour(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUpstreamMsg ¶
func GetUpstreamMsg(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取消息发送概况数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Message_analysis_data_interface.html
POST https://api.weixin.qq.com/datacube/getupstreammsg?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUpstreamMsg(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUpstreamMsgDist ¶
func GetUpstreamMsgDist(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取消息发送分布数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Message_analysis_data_interface.html
POST https://api.weixin.qq.com/datacube/getupstreammsgdist?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUpstreamMsgDist(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUpstreamMsgDistMonth ¶
func GetUpstreamMsgDistMonth(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取消息发送分布月数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Message_analysis_data_interface.html
POST https://api.weixin.qq.com/datacube/getupstreammsgdistmonth?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUpstreamMsgDistMonth(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUpstreamMsgDistWeek ¶
func GetUpstreamMsgDistWeek(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取消息发送分布周数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Message_analysis_data_interface.html
POST https://api.weixin.qq.com/datacube/getupstreammsgdistweek?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUpstreamMsgDistWeek(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUpstreamMsgHour ¶
func GetUpstreamMsgHour(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取消息分送分时数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Message_analysis_data_interface.html
POST https://api.weixin.qq.com/datacube/getupstreammsghour?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUpstreamMsgHour(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUpstreamMsgMonth ¶
func GetUpstreamMsgMonth(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取消息发送月数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Message_analysis_data_interface.html
POST https://api.weixin.qq.com/datacube/getupstreammsgmonth?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUpstreamMsgMonth(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUpstreamMsgWeek ¶
func GetUpstreamMsgWeek(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取消息发送周数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Message_analysis_data_interface.html
POST https://api.weixin.qq.com/datacube/getupstreammsgweek?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUpstreamMsgWeek(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUserCumulate ¶
func GetUserCumulate(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取累计用户数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/User_Analysis_Data_Interface.html
POST https://api.weixin.qq.com/datacube/getusercumulate?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUserCumulate(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUserRead ¶
func GetUserRead(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取图文统计数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Graphic_Analysis_Data_Interface.html
POST https://api.weixin.qq.com/datacube/getuserread?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUserRead(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUserReadHour ¶
func GetUserReadHour(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取图文统计分时数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Graphic_Analysis_Data_Interface.html
POST https://api.weixin.qq.com/datacube/getuserreadhour?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUserReadHour(ctx, payload) fmt.Println(resp, err) }
Output:
func GetUserShare ¶
func GetUserShare(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取图文分享转发数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Graphic_Analysis_Data_Interface.html
POST https://api.weixin.qq.com/datacube/getusershare?access_token=ACCESS_TOKEN
func GetUserShareHour ¶
func GetUserShareHour(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取图文分享转发分时数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Graphic_Analysis_Data_Interface.html
POST https://api.weixin.qq.com/datacube/getusersharehour?access_token=ACCESS_TOKEN
func GetUserSummary ¶
func GetUserSummary(ctx *offiaccount.OffiAccount, payload []byte) (resp []byte, err error)
获取用户增减数据
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/User_Analysis_Data_Interface.html
POST https://api.weixin.qq.com/datacube/getusersummary?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount payload := []byte("{}") resp, err := datacube.GetUserSummary(ctx, payload) fmt.Println(resp, err) }
Output:
func PublisherStat ¶
func PublisherStat(ctx *offiaccount.OffiAccount, params url.Values) (resp []byte, err error)
获取公众号分广告位数据/公众号返佣商品数据/公众号结算收入数据及结算主体信息
See: https://developers.weixin.qq.com/doc/offiaccount/Analytics/Ad_Analysis.html
GET https://api.weixin.qq.com/publisher/stat?action=publisher_adpos_general&access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "net/url" "github.com/fastwego/offiaccount" "github.com/fastwego/offiaccount/apis/datacube" ) func main() { var ctx *offiaccount.OffiAccount params := url.Values{} resp, err := datacube.PublisherStat(ctx, params) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.