0
我需要一個Google API密鑰和一個Google Access令牌來添加一些示例代碼。但是,當我爲Google Cloud NLP項目創建憑據時,會收到一個包含以下代碼的JSON文件。哪一個是API密鑰,哪一個是訪問令牌?我很困惑,謝謝!Google API密鑰+雲端自然語言接入令牌API
{
"type": "service_account",
"project_id": "project-id",
"private_key_id": "some_number",
"private_key": "-----BEGIN PRIVATE KEY-----\n....
=\n-----END PRIVATE KEY-----\n",
"client_email": "<api-name>[email protected]",
"client_id": "...",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/...<api-name>api%40project-id.iam.gserviceaccount.com"
}