From 683fdf3a142363f57639904916e0c580e20dc46f Mon Sep 17 00:00:00 2001 From: Geo Halkiadakis Date: Wed, 22 Mar 2023 17:41:49 +0200 Subject: linkeysearch: 2 step implementation dtails; shall run as google funcction --- javascript/test-cdn.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'javascript/test-cdn.js') diff --git a/javascript/test-cdn.js b/javascript/test-cdn.js index b72fcee..3251eca 100644 --- a/javascript/test-cdn.js +++ b/javascript/test-cdn.js @@ -5,7 +5,7 @@ const {Storage} = require('@google-cloud/storage'); // specifying the private key file. All clients in google-cloud-node have this // helper, see https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/docs/authentication.md const projectId = 'pythia-251711'; -const keyFilename = '/home/geo/pythia-api/auth/pythia-251711-047e3d5e6608.json'; +const keyFilename = '../auth/pythia-251711-047e3d5e6608.json'; const storage = new Storage({projectId, keyFilename}); // Makes an authenticated API request. @@ -21,4 +21,5 @@ async function listBuckets() { console.error('ERROR:', err); } } + listBuckets(); \ No newline at end of file -- cgit v1.2.3