--
You received this message because you are subscribed to the Google Groups "Google Cloud Storage" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gs-discussion/-/odMsfdHHUUAJ.
To post to this group, send email to gs-dis...@googlegroups.com.
To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gs-discussion?hl=en.
Hello,Problem:We're using Google Spread Sheets for our purpose using Google App Script, We've a requirement that we would like to write the data from Google Spread Sheet to a csv file and store the csv file in Google Cloud Storage.Can you please let me know how can I solve the above problem using Google Apps Script? If not possible, please let me know the way how to solve this problem?It's a urgent task for us, please respond asap. Thanks in advanceThanks,Pavan--
The AppEngineFile class can help. You can use that to create files in GCS. However, I have had to use REST API for deleting those files when needed.
Thanks,
Murali
--
--Hi Marc,Thanks for your quick turn around. The example in the update provided by you, fetching the data from Google Cloud Storage. But, I need it in other way. I need a way to store in Google Cloud Storage using Google App Script.Please provide the sample code, if it's possible OR let me provide the other ways to solve this issue.Thanks,Pavan
Hi Marc,Thanks for your reply. Am little confused now. I tried using URLFetch object, but I'm not sure how to process the response object to get the desired action.
Here's my understandings and questions as of now:* I studied the doc of Google Cloud Storage (https://developers.google.com/storage/docs/reference-methods) and found the following:There is XML API and JSON API which performing different type of operations on Google Cloud Storage.
* From the sample code provided in the previous mail by you, by using PUT we can upload a file.Where do I need to pass file information to upload??
* For retrieving (using GET method) where it storing the downloaded file.
Lets take the following example and explain me clearly how to proceed here.Eg:-* lets say bucket_name: XXX_YYY* I've one Google Spread Sheet named abc,* I need to upload the file abc to bucket (XXX_YYY)* How can I do this?Similarly,* Once the above completed I'll have file abc in bucket (XXX_YYY)* How can I download and have it in my google DocsCan you please send me the complete code for the above tasks?(preferably by email : pavankum...@gmail.com)
Am eagerly waiting for your reply?Thanks,Pavan
Hi Marc,
--