Module: EricWeixin::AnalyzeData

Defined in:
lib/eric_weixin/modules/analyze_data.rb

Overview

数据统计接口模块

Class Method Summary collapse

Class Method Details

.auto_get_and_save_data_from_weixin(weixin_public_account_id) ⇒ Object

自动去微信服务器拉取当日之前的统计模块的数据.

参数说明

  • weixin_public_account_id # 微信公众号ID

调用实例

::EricWeixin::AnalyzeData::InterfaceData.auto_get_and_save_data_from_weixin 1



9
10
11
12
13
14
# File 'lib/eric_weixin/modules/analyze_data.rb', line 9

def self.auto_get_and_save_data_from_weixin 
  ::EricWeixin::Report::UserData.auto_execute_get_and_save_data_from_weixin 
  ::EricWeixin::Report::NewsData.auto_execute_get_and_save_data_from_weixin 
  ::EricWeixin::Report::MsgData.auto_execute_get_and_save_data_from_weixin 
  ::EricWeixin::Report::InterfaceData.auto_execute_get_and_save_data_from_weixin 
end

.get_article_summary(options) ⇒ Object

获取图文群发每日数据(getarticlesummary)



29
30
31
# File 'lib/eric_weixin/modules/analyze_data.rb', line 29

def self.get_article_summary options
  get_data_json "https://api.weixin.qq.com/datacube/getarticlesummary?access_token=", options
end

.get_article_total(options) ⇒ Object

获取图文群发总数据(getarticletotal)



34
35
36
# File 'lib/eric_weixin/modules/analyze_data.rb', line 34

def self.get_article_total options
  get_data_json "https://api.weixin.qq.com/datacube/getarticletotal?access_token=", options
end

.get_interface_summary(options) ⇒ Object

获取接口分析数据(getinterfacesummary)



98
99
100
# File 'lib/eric_weixin/modules/analyze_data.rb', line 98

def self.get_interface_summary options
  get_data_json "https://api.weixin.qq.com/datacube/getinterfacesummary?access_token=", options
end

.get_interface_summary_hour(options) ⇒ Object

获取接口分析分时数据(getinterfacesummaryhour)



103
104
105
# File 'lib/eric_weixin/modules/analyze_data.rb', line 103

def self.get_interface_summary_hour options
  get_data_json "https://api.weixin.qq.com/datacube/getinterfacesummaryhour?access_token=", options
end

.get_upstream_msg(options) ⇒ Object

获取消息发送概况数据(getupstreammsg)



61
62
63
# File 'lib/eric_weixin/modules/analyze_data.rb', line 61

def self.get_upstream_msg options
  get_data_json "https://api.weixin.qq.com/datacube/getupstreammsg?access_token=", options
end

.get_upstream_msg_dist(options) ⇒ Object

获取消息发送分布数据(getupstreammsgdist)



81
82
83
# File 'lib/eric_weixin/modules/analyze_data.rb', line 81

def self.get_upstream_msg_dist options
  get_data_json "https://api.weixin.qq.com/datacube/getupstreammsgdist?access_token=", options
end

.get_upstream_msg_dist_month(options) ⇒ Object

获取消息发送分布月数据(getupstreammsgdistmonth)



91
92
93
# File 'lib/eric_weixin/modules/analyze_data.rb', line 91

def self.get_upstream_msg_dist_month options
  get_data_json "https://api.weixin.qq.com/datacube/getupstreammsgdistmonth?access_token=", options
end

.get_upstream_msg_dist_week(options) ⇒ Object

获取消息发送分布周数据(getupstreammsgdistweek)



86
87
88
# File 'lib/eric_weixin/modules/analyze_data.rb', line 86

def self.get_upstream_msg_dist_week options
  get_data_json "https://api.weixin.qq.com/datacube/getupstreammsgdistweek?access_token=", options
end

.get_upstream_msg_hour(options) ⇒ Object

获取消息分送分时数据(getupstreammsghour)



66
67
68
# File 'lib/eric_weixin/modules/analyze_data.rb', line 66

def self.get_upstream_msg_hour options
  get_data_json "https://api.weixin.qq.com/datacube/getupstreammsghour?access_token=", options
end

.get_upstream_msg_month(options) ⇒ Object

获取消息发送月数据(getupstreammsgmonth)



76
77
78
# File 'lib/eric_weixin/modules/analyze_data.rb', line 76

def self.get_upstream_msg_month options
  get_data_json "https://api.weixin.qq.com/datacube/getupstreammsgmonth?access_token=", options
end

.get_upstream_msg_week(options) ⇒ Object

获取消息发送周数据(getupstreammsgweek)



71
72
73
# File 'lib/eric_weixin/modules/analyze_data.rb', line 71

def self.get_upstream_msg_week options
  get_data_json "https://api.weixin.qq.com/datacube/getupstreammsgweek?access_token=", options
end

.get_user_cumulate(options) ⇒ Object



22
23
24
# File 'lib/eric_weixin/modules/analyze_data.rb', line 22

def self.get_user_cumulate options
  get_data_json "https://api.weixin.qq.com/datacube/getusercumulate?access_token=", options
end

.get_user_read(options) ⇒ Object

获取图文统计数据(getuserread)



39
40
41
# File 'lib/eric_weixin/modules/analyze_data.rb', line 39

def self.get_user_read options
  get_data_json "https://api.weixin.qq.com/datacube/getuserread?access_token=", options
end

.get_user_read_hour(options) ⇒ Object

获取图文统计分时数据(getuserreadhour)



44
45
46
# File 'lib/eric_weixin/modules/analyze_data.rb', line 44

def self.get_user_read_hour options
  get_data_json "https://api.weixin.qq.com/datacube/getuserreadhour?access_token=", options
end

.get_user_share(options) ⇒ Object

获取图文分享转发数据(getusershare)



49
50
51
# File 'lib/eric_weixin/modules/analyze_data.rb', line 49

def self.get_user_share options
  get_data_json "https://api.weixin.qq.com/datacube/getusershare?access_token=", options
end

.get_user_share_hour(options) ⇒ Object

获取图文分享转发分时数据(getusersharehour)



54
55
56
# File 'lib/eric_weixin/modules/analyze_data.rb', line 54

def self.get_user_share_hour options
  get_data_json "https://api.weixin.qq.com/datacube/getusersharehour?access_token=", options
end

.get_user_summary(options) ⇒ Object

——————-用户分析数据接口————————————



18
19
20
# File 'lib/eric_weixin/modules/analyze_data.rb', line 18

def self.get_user_summary options
  get_data_json "https://api.weixin.qq.com/datacube/getusersummary?access_token=", options
end