Json Model From Google Drive File List From Shared Folder - javascript

I have a folder on Google Drive with Public status, with this URL : https://drive.google.com/drive/folders/1wmDrVEt9dbHHQOwhIzU86wZwz_vEkK5l
How can I generate JSON using PHP or JavaScript that I can upload my code / script to my shared hosting, without an auth page, like this : http://jsonblob.com/1075618336423034880
I have a Google Drive API key, Please help me.

Related

Can I connect my Wordpress form datas to a Google Cloud Storage bucket?

I'm working on a little project at the moment and I have a Wordpress webpage that can be used to upload data. In every 2 hour the data is uploaded to a Dropbox folder. Every other detail is being scraped by a Python script. The data is downloaded to a cloud vm and it does it's job, and sends back the finished work to the person who uploaded the data. I want to make a shortcut where I connect the Wordpress form to the Google Cloud Storage but I'm not sure where to start.
I should use Flask with Postgres database so in the future I canupload in the future but if I'm being honest I never used it before so any help would be appreciated.

How do you get user information after uploading a file with the Google API?

I am working on a side project where user's can upload images of receipts to their Google Drive, and the application will access the text from the images with OCR. I have been tasked to save the information such as file name, file id, file type, file url, etc, in a database so we can access the uploaded picture to use OCR on it. Also, the auth token for a user should be saved in the db, according to some general user information.
How do I go about getting that information? I was able to have the pictures uploaded successfully after authenticating with Google and whatnot, but I have no idea where to find the file id/file url. I have access to file name, file type, and file path (except from what I can tell, it's not where the actual photo is being held in the user's drive).
Does anyone have any ideas on how I can complete my task? I can link my github with the current code if that's allowed. Thank you.

Downloading files from google storage using Google Scripts

I'm trying to download the .csv of my app reviews on the play store and import it into google sheets using Google Scripts.
Is there a way to access google storage with Google scripts?
I want to retrieve the files from my bucket
Eg) gs://pubsite_prod_rev_0123456789/reviews/reviews_com.example.app_2013*
If the object is publicly readable, you can import it like any other URL:
IMPORTDATA("http://storage.googleapis.com/bucket_name/object_name")
The wildcard character, *, won't work, though. IMPORTDATA only accepts a single URL at a time.

Google Drive API & Google Realtime API - Can I place a realtime file in the app folder?

Using the Google Drive API and Google Realtime API (via JavaScript):
I can create a realtime file without providing a parent. However when I attempt to set the parent as "appdata" I receive this error from the API:
Only folders or files with content stored in Drive are allowed within
the appdata folder
It's a little vague perhaps a realtime file is not considered having contents?
So my question: Is it possible to place a realtime file within the app folder?
Through further investigation I have managed to find the answer to my question.
Actually, unfortunately you cannot currently place a realtime file
within the appdata folder. This is something we are looking at
adding, but in most cases it doesn't make sense since the content of
the appdata folder is restricted to a single user.
Cheryl Simon on Google Drive Developers - https://plus.google.com/communities/107264319205603895037

How would one integrate Google Docs into your web application for Node.js?

I have a web application that currently stores documents for users on my site in my Amazon S3 bucket. I am looking to enable users to open and edit their documents from my S3 bucket using Google Docs. How would I do that?
I don't think you will be able to open your documents hosted on S3 from Google Docs, unless you get your users to save them first.
I have a crazy idea that could work:
Share the documents with your users (either by making them public or just sharing the link).
Use Google Drive to sync those documents with some server.
Periodically upload the documents to s3.

Categories