How to view file contents in Google Cloud Storage using javascript

How to view file contents in Google Cloud Storage using javascript.

I tried this and it gets metadata, but I cannot figure out how to read the contents of the file. Any help is appreciated, thanks.

$wnd.gapi.client.request({
           path : '/storage/v1beta1/b/easycompile/o/steps.txt',
           method : 'GET',
           params : {
                projection: "FULL"
           }
      });
      request.execute(function(response) {
           console.log(response);   
      });    
+1
source share

Source: https://habr.com/ru/post/1016101/


All Articles