Upload/Download file to/from Google Drive using Google Cloud services in VB.net - vb.net

I have spent quite some time trying to find an example of how to use Google Drive with VB.net. All examples seem to be in other languages - usually C. I found a Youtube video on exactly what I wanted (https://www.youtube.com/watch?v=dZUn3ofWbJk&t=471s), but even that was no use in the end, as part-way through (1:16) it demonstrated copying and pasting a "secret ID" Google API services - a page I could not find - I looked under "credentials" similar to the video and did not get a "secret ID" as they were demonstrating to copy and paste...
Can anyone lead me to a good VB.net example program for uploading/downloading to Google Drive? Many thanks!

Related

Google Local Service Ads to Big Query

I need help writing a simple script or example for "Code.gs" in Google Sheets using the BigQuery to import from Google Local Ads API (Not Google Ads) to Google Sheets. The information needed would be everything that the LSA API has to has offer. I have currently done a lot of research on the back end and can't seem to find any examples on how to write function scripts for importing from Google LSA. Thank you in advance for your help.
What I have set up.
I have created my Oauth credentials and tokens
Tested the tokens in Google playground to ensure that everything works correctly.
What I need done:
Need a function script (for Google Sheets - Code.gs) that can grab my local service ads api info to into Google Sheets using the BigQuery API scripting language.

Using Google Cloud or Drive to Programatically Convert Word to PDF

Candidates use my PHP application to upload their CV in either Word or PDF format. I want to convert the Word documents (doc or docx) to PDF. I have tried using on-server solutions (PHP libraries), but can not find one that is reliable enough so I am now exploring Google solutions.
It seems that the Drive API has just what I need. I can:
upload a Word document and request conversion to Google Doc.
export the doc as a PDF
delete the doc
The problem is that (as far as I can see), the only way I can access the Drive API is via OAuth 2, which is quite an overhead in the case of simple server-to-server access. I would prefer to use a simple API key.
As far as I can see, if I want to use an API key, then I need to sign up for a Google Service Account, which again seems like quite an overhead. (I only want to convert some files, right?).
Is there a straightforward way to achieve my goal (using Google resources)? Or are the two options above my only choices?
Your use case is a perfect fit for a Service Account. It's not really much of an overhead, say 10 minutes to set up the account and a couple of hours to write the auth code. If you would rather use a regular account, check out How do I authorise an app (web or installed) without user intervention? which has step by step instructions and sample code.

Is there to read the data from google spreadsheet link in IOS?

i am currently work on an IOS project which is required to read data from Spreadsheet in google drive. I have done some research and i found Google APIs client library for Objective C. However, i still have problem of retrieving data from spreadsheet. i find only the sample code that can read the file in drive from the drive that user login. But what i actually want in this project is using Google Drive as the Database. In short i want to retrieve data from the url like this https://docs.google.com/spreadsheet/ccc?key=0AoYC7S60-ywcdHVZYzh4ZlZ1Y3J5R2ZGbnBqY09jdkE&usp=sharing.
So is there a solution for this kind of problem? and if there a good site that provide a good tutorial to this kindda problem?
Google apps script is probably a simpler option. You can set it up as a web app, and read/write to the spreadsheet via the webapp. The google-spreadsheet-api is hard to use as there is little good documentation.
Refer, Google's Sample Code it can help you. You can also use GData Objective C Client to use it.

Is there any quick and easy way to upload a Google Doc from SAP?

We're creating a custom table in SAP comprising all of the information we need and the customer needs the report from this table uploaded to Google Docs. We do not use Business By Design. Is there any other quicka nd easy way to upload our report?
I don't know much about SAP but the Documents List API has methods to programmatically upload a document to Google Docs: https://developers.google.com/google-apps/documents-list/.
For instance, if you can export the SAP table as a csv file, that can be automatically converted into a Google Spreadsheet during the upload process.
You could also go with a no-programming required solution and install the Google Drive app on a machine with access to the files for automatic sync up to Google Drive:
http://support.google.com/drive/bin/answer.py?hl=en&answer=2374989
suggest you take a look at the SAP Developer Network (SDN) / SAP Community Network (SCN) where there is a project called ABAP2GAPPS that has done this.
Note the ABAP2GAPPS example is a bit difficult to figure out (but you can learn a lot from it), and it also uses the OAuth2 'authorization code flow" OAuth2.0 flow/pattern, which requires an end-user 'consent' in an browser pop-up...so if you want to push up a file from ABAP automatically from a background job without end-user interaction then ABAP2GAPPS is not the full answer (but again, ABAP2GAPPS is a great example, suggest you look at it.)
We recently were able to achieve an interface from SAP ABAP to the Google Fusion Table API using OAuth2, with only about a 100 lines of ABAP...and the techniques we employed could be used on any of the Google API's...here's a link to the video:
Link to YouTube video interface ABAP to Google API
hope you find this helpful

What is the difference between Google Apps Scripts and Gadgets in Google Sites

I am getting familiar with Google Sites. What I want is, building a Site front-end for a Google Spreadsheet.
I want to Display data from the Spreadsheet in the Google Site, later maybe some graphics as well. To my knowledge there are two ways to accomplish this, Apps Scripts and Gadgets. Building a Gadget seemed much more easy in the beginning, however gives me some trouble. After reading more about Apps Scripts I finally found a way to access the Spreadsheet and display data.
But reading a lot of google documentation, I wonder what really is the difference? In what cases should one use Gadgets and in what case Apps Scripts?
Maybe I am just a little overwhelmed but it would be nice to get some feedback from experiences developers in that field!
Thanks a lot.
Cheers,
Daniel
Google Apps Script is javascript, but run in server side. So it is not client side javascript like javascript Gadget or any HTML.
Google Apps Script use GWT, which generate client side Javascript.
Gadget is XML code containing HTML inside
which means gadget is text.
Google Apps Script is kinda JavaScript
which means GAS is code.
Might be the main difference.