Google Cloud Api Kullanımı?

hocam aldığım hataları ekledim.

API’lerin kullanımı ile ilgili google’un verdiği rehberler var. Python’da import etmeden, https://cloud.google.com/ bu siteden apiyi aktive edip verdiği json dosyasını kullanmak gerekiyor. Aşağıda ki adımları yaptım bende. PowerShell’de dediği kodlarrı girip indirdiğim json dosyasının konumunu belirttim.

  ` * Set up a Cloud Console project.Set up a project`

Click to:

* Create or select a project.
* Enable the Cloud Translation API for that project.
* Create a service account.
* Download a private key as JSON.

You can view and manage these resources at any time in the [Cloud Console](https://console.cloud.google.com/).

* Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the file path of the JSON file that contains your service account key. This variable only applies to your current shell session, so if you open a new session, set the variable again.

**Example:** Linux or macOS

**Example:** Windows

Replace [PATH] with the file path of the JSON file that contains your service account key, and [FILE_NAME] with the filename.

With PowerShell:

$env:GOOGLE_APPLICATION_CREDENTIALS="[PATH]"

For example:

$env:GOOGLE_APPLICATION_CREDENTIALS="C:\Users\username\Downloads\[FILE_NAME].json"

With command prompt:

set GOOGLE_APPLICATION_CREDENTIALS=[PATH]

daha sonra import işlemi falan yaptıktan sonra verilen hataları yükarıda belirttim.