Thursday 15 September 2011

Can I execute code on Google Drive server infra? -


Does Google Drive API provide a way to execute its code on the Google Drive server?

Let's say I want to type grep based on Google Dirve so that I can be able to write something like this in order to find the customer through their files: ( Very simple to make it too short) Define the function for

  / * grep * / var grep = function (params, callback) {// 1) `gapi.client.drive. Find all text files using files.list` / 2. 2) Open each file with `gapi.client.drive.files.get` / 3) Scan for search string frequency callback (search_result); } / * Code register on the server with the fictional API * / gapi.client.drive.server.register ('myapp.grep', grep); / * Execute from browser / gapi.client.drive.server.myapp.grep ({searchString: 'Abrakadabra', mimeType: 'application / javascript'}, function (resutls) {console.log (result)});   

Many types of application types can benefit from this approach. Simple DB Manager is another example.

There is no one else who is quiet What do you want me to do? I do not think Google Drive has this feature.

No comments:

Post a Comment