Description:
Connect to Google Cloud Storage service.
Syntax:
gcs_open(json)
Note:
External library function (See External Library Guide).
The JSON file used to connect to the GCS service is generated when we register the Google account, and the file content is about Google Cloud Storage connection information:
{
"type": "...",
"project_id": "...",
"private_key_id": "...",
"private_key": "...",
"client_email": "...",
"client_id": "...",
"auth_uri": "...",
"token_uri": "...",
"auth_provider_x509_cert_url": "...",
"client_x509_cert_url": "..."
}
Parameter:
json |
JSON string |
Return value:
Connection object
Example:
|
A |
|
1 |
=file("F:/gcs.json").read() |
|
2 |
=gcs_open(A1) |
Connect to the GCS service. |
3 |
>gcs_close(A2) |
Close the GCS connection. |