我正在我的网站上构建一个块,其中包含通过 sharethis api 在我的域中共享最多的 5 个 url,我一直在对其进行测试并得到了一些意想不到的结果......
当我检查域统计 api 时,我得到了预期的结果:
要求:
http://rest.sharethis.com/analytics/V2/getDomainStats.php?domain={my-domain}&pub_key={my-publisher-key}&access_key={my-secret-key}
回复:
{"status":"SUCCESS","from_date":"20120620","to_date":"20120627","data":
{"domain_summary":[{"clicks":1092,"shares":134,"traffic":1393,"date":"06\/20","channel_stats":
[{"shares":86,"clicks":404,"traffic":412,"channel":"facebook"},
{"shares":25,"clicks":617,"traffic":898,"channel":"email"},
{"shares":12,"clicks":0,"traffic":0,"channel":"fblike"},
{"shares":7,"clicks":42,"traffic":31,"channel":"twitter"},
{"shares":3,"clicks":0,"traffic":0,"channel":"plusone"},
{"shares":1,"clicks":0,"traffic":0,"channel":"pinterest"},
{"shares":0,"clicks":17,"traffic":19,"channel":"blogger"},
{"shares":0,"clicks":12,"traffic":33,"channel":"google_bmarks"}]}.....
自从他们回去一周后,我显然已经截断了这些结果......
当我试图找出我的域中最活跃的 url 时:
要求:
http://rest.sharethis.com/analytics/V2/getTopUrlStats.php?domain={my-domain}&from_date=2012-06-27&to_date=2012-01-01&pub_key={my-publisher-key}&access_key={my-secret-key}
回复:
{"status":"SUCCESS","from_date":"20120627","to_date":"20120101","last_batch_date":"20120626","data":{"top_urls_summary":[]},"today":""}
显然这不是我要找的,我有点击,在 sharethis 网站上,我可以毫无问题地访问我的指标并查看我正在寻找的信息,但 api 没有回答任何数据。我尝试更改日期范围或完全省略它(由于某种原因返回一个空数据集)无济于事。有没有其他人遇到过类似的问题?