2015-05-29 56 views
3

我们用来提取性能最佳的网址的API现在无法使用。API https://www.google.com/analytics/feeds/data无法使用

详情如下:

https://www.google.com/analytics/feeds/data 
?start-date=2015-05-26 
&end-date=2015-05-27 
&dimensions=ga:pageTitle,ga:pagePath &metrics=ga:pageviews,ga:visitBounceRate,ga:avgTimeOnSite,ga:uniquePageviews\ 
&sort=-ga:pageviews\ 
&filters=ga:[email protected] 
&max-results=10 
&ids=ga:5180657 
&prettyprint=true 

授权使用curl:从谷歌

https://www.google.com/accounts/ClientLogin -s -d 
[email protected] -d Passwd=****** -d accountType=GOOGLE -d 
source=curl-accountFeed-v1 -d service=analytics 

响应:

<?xml version="1.0" encoding="UTF-8"?> 
<errors xmlns="http://schemas.google.com/g/2005"> 
<error> 
<domain>GData</domain> 
<code>authError</code> 
<location type="header">Authorization</location> 
<internalReason>Invalid Credentials</internalReason> 
</error> 
</errors> 

请求您的帮助。

Regards, -Amalan。

+0

检查它说的响应,无效凭证。仔细检查你的信用。 – gvmani

回答