我正在努力在我的網站上建立一個包含我的域名前5個共享網址的塊,通過sharethis api,我一直在測試它,並得到了一些意想不到的結果...Sharethis api頂部分享網址
當我檢查站點統計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"}]}.....
我已經被截斷這些結果明顯,因爲他們回去一個星期...
當我試圖找出網址是從我的領域中最活躍的:
要求:
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沒有回答任何數據。我試圖改變日期範圍或完全忽略它(由於某種原因返回一個空的數據集)而無濟於事。有其他人遇到過類似的問題嗎?