Php 谷歌核心报告凭证标识

Php 谷歌核心报告凭证标识,php,oauth-2.0,Php,Oauth 2.0,我读过核心报告文档,也读过不同的教程,但这些都没有意义 仅仅从尝试复制演示的角度来看,我仍然迷路了。我正在使用的这个简单的演示程序要求提供以下0Auth 2.0信息: // $client->setClientId('insert_your_oauth2_client_id'); // $client->setClientSecret('insert_your_oauth2_client_secret'); // $client->setRedirectUri('insert_

我读过核心报告文档,也读过不同的教程,但这些都没有意义

仅仅从尝试复制演示的角度来看,我仍然迷路了。我正在使用的这个简单的演示程序要求提供以下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文件提供了一些信息:

{
    "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"]
    }
}
CliendId
RedirectUri
,明白了,没问题
ClientSecret
DeveloperKey
?我甚至看不到列出的任何地方。我想这可能意味着你下载的公钥和私钥,但即便如此,我也不知道如何访问PKCS#12文件或其他文件


我绝望地迷路了,谷歌文档一直在把我团团转,从来没有提到这些东西是什么以及如何得到它们。

我没有做任何事情来解决这个问题。有一天它才开始工作。我想这是谷歌API的某种缺陷,他们正在着手修复,但我从未在其他论坛或帮助网站上发现任何其他的缺陷实例