LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Google Drive API - How to read and use a .net API

So I've started using GDrive for Labview (https://www.ni.com/en/support/downloads/tools-network/download.gdrive-for-labview.html). and it works great.  I'm able to see and download files but I've run into the same problem listed here https://github.com/ni/labview-gdrive/issues/3

 

Basically the list files VI will only return a maximum of 99 files.  The person who identified the problem on GIT hub above found a solution, but it iterates thorough ALL of the files in GDrive.  This particular solution takes WAY too long when you have lots of files like i do (ran for 5 mins and still didn't finish).

 

To speed things up, I want to 1) search for a particular folder  2) use this to list the contents of only that particular folder so i can ultimately download a specific file

 

I'm pretty certain the google drive api has functions for this (https://developers.google.com/resources/api-libraries/documentation/drive/v3/csharp/latest/annotated...)  but i'm just not versed well enough in reading API documentation to understand which properties and methods need to be used.

 

Anyone out there used this API beyond the GDrive labview functions? OR.. anyone know enough about reading a .net API to help me figure out which pieces I need to allow me to search for a folder and scan for the contents of that particular folder ?

 

 

 

0 Kudos
Message 1 of 3
(3,975 Views)

possibly getting closer...??

 

https://stackoverflow.com/questions/12523623/how-to-find-folder-in-google-drive

 

so here they are using the q parameter to search... and i got as far as listing the number of folders with a specific name, now I need to somehow use this to get access to the files in those folders. 

 

(picture of some code attached for reading, I can't upload the actual code because of the client secret JSON file)

0 Kudos
Message 2 of 3
(3,959 Views)

Thought I'd post an update to what I found on this, maybe its useful for some one out there.  So attached is about as far as I got with this.

 

I wasn't able to figure out how to search specific areas within GDrive but I was able to create a search where the file name contains a certain criteria.  Note to anyone looking at this, you will want to download "GDrive for Labview" from the package manager.  It contains all the stuff to get started.

 

In the end I'm not even using GDrive, and ended up using Bitbucket to store the files I needed for my situation ( easy to implement and built in revision control, perfect for what I needed in the end)

0 Kudos
Message 3 of 3
(3,840 Views)