2013-05-31 85 views
0

我已經閱讀了關於核心報告文檔,我已經通過不同的教程,並沒有任何意義。谷歌核心報告憑據識別

從試圖複製演示的角度看,我仍然迷失。簡單的,簡單的演示我的工作要求該0Auth 2.0信息:

// $client->setClientId('insert_your_oauth2_client_id'); 
// $client->setClientSecret('insert_your_oauth2_client_secret'); 
// $client->setRedirectUri('insert_your_oauth2_redirect_uri'); 
// $client->setDeveloperKey('insert_your_developer_key'); 

JSON文件,我從https://code.google.com/apis/console?api=analytics下載,提供一些信息的:

{ 
    "web":{ 
     "auth_uri":"https://accounts.google.com/o/oauth2/auth", 
     "token_uri":"https://accounts.google.com/o/oauth2/token", 
     "client_email":"*********@developer.gserviceaccount.com", 
     "redirect_uris":["https://www.**********.com/oauth2callback"], 
     "client_x509_cert_url":"https://www.googleapis.com/robot/v1/metadata/x509/**********@developer.gserviceaccount.com", 
     "client_id":"**********.apps.googleusercontent.com", 
     "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs", 
     "javascript_origins":["https://www.**********.com"] 
    } 
} 

CliendIdRedirectUri,得到它,沒有問題。 ClientSecretDeveloperKey?我什至不會看到那些列在任何地方。我認爲這可能意味着您下載的公鑰和私鑰,但即使如此,我也不知道如何訪問PKCS#12文件或其他任何內容。

我絕望地迷失了,谷歌文檔一直在圈我,並且從未提及這些作品是什麼以及如何獲得它們。

回答

0

我沒有做任何事情來解決這個問題。它剛剛開始工作一天。我認爲這是Google API的某種錯誤,他們需要解決這個問題,但是我從來沒有在其他論壇或幫助網站上發現任何其他的錯誤。