datacube

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: 3 Imported by: 0

Documentation

Overview

Package datacube 数据统计

Index

Examples

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

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.GetUserShare(ctx, payload)

	fmt.Println(resp, err)
}
Output:

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

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.GetUserShareHour(ctx, payload)

	fmt.Println(resp, err)
}
Output:

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.

Jump to

Keyboard shortcuts

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