I need to integrate Google cloud translation API to google sheets using macros - google-sheets

I Cant find any workable solution. Can anyone help? Need to make translate from 1st sheet in one doc to the second. About 60.000 changeable rows.

You can use the Google Translate function directly in your sheet
If you want more advanced/customized calls, I recently wrote an article where I use the current user credential and I call a Google Cloud API (not the translate, but the principle is the same)

Related

Is it possible to add a blank sheet to a google spreadsheet using sheets.spreadsheets v4?

The current api is https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.sheets/copyTo
This is a workaround because I have to first copy an existing sheet and then clear its content before making any use of it.
Google App Script has InsertSheet and it is missing in sheets v4 api.
Why would Google team decide not to do such a simple one?
Well, it was not straight forward.
However the answer is in batchUpdate for Sheet Operations
https://developers.google.com/sheets/api/samples/sheet#add_a_sheet

Fetch data from Google Spreadsheet

how can I fetch data from a google spreadsheet? It's not something like embedding a google doc on a webpage. Suppose, you have a table consisting of 10 rows and 10 columns at google doc. Now, you created a 10x10 table on a PHP webpage. Now you will show the respective values of the cells from that google doc to your php page. It's just like fetching data from a MySQL database and showing them on your web page. But here instead of using a MySQL database, I want to use Google Doc and do the rest. But how can I do it?
Thank you.
Google has a REST api for spreadsheets and native apis for many languages.
https://developers.google.com/sheets/api
If your data is the typical table layout (rows of data with a header row) - then you might find this python library helpful:
http://sheetsync.readthedocs.org/en/latest/
Temboo provides an SDK library that makes it pretty easy to interact with Google Spreadsheets in multiple languages, including Java/Android, PHP, Ruby, Python, Node.js, and Objective C. There's also an online tool for experimenting with different Google Spreadsheet API calls. Take a look at https://www.temboo.com/library/Library/Google/Spreadsheets/
(Full disclosure: I work at Temboo)

Sync Google Calendar in Lua

Does anyone have an example how to sync data to Google Calendar via Lua?
Finally just changing a dates entry and reading its content.
Google does not offer a client library for Lua so you will have to use their REST API. This means the best way to get started is by looking at the documentation at http://code.google.com/apis/calendar/v3/getting_started.html.
Besides plain Lua you will need at least something like LuaSocket to retrieve and create data over the wire and based on a quick glance of their documentation some sort of authentication library is required as well (I found LuaOAuth with a quick google, but I can not recommend it because I have personally not used it).

iOS: Google Calendar Example

Searching around the net for almost 1 day I still did not see any simple good example of an app that implements the Google Calendar API. Or even simple explanation on how to implement the API is still not available. Can someone help me please? I'm a newbie to iOS. I need to learn how to create an event using the Google Calendar API through my app in iOS. I need a sample simple code...
Here are some very useful links when trying to figure out the google calendar api. http://code.google.com/p/gdata-objectivec-client/wiki/GDataObjCIntroduction and mainly http://code.google.com/p/iphone-gcal/. I just downloaded the source code from the second link and worked from there. It was great!
The Google Calendar API, like most Google API's, provides a straightforward REST interface. Instead of focussing first on how to create calendar events, learn how to interact with a RESTful web service. Once you know how to do that, you only have to learn what calls to make to accomplish your goal, and that's already well documented.

Using Google Spreadsheet as DB for apps

I want to use Google spreadsheets to store data online so multiple people can enter and maintain data, then publish or export (csv, xls, ods) the sheet for their application. What is the easiest way to process the sheet? If the data can be accessed as a link the updates could be immediately reflected in the client's app.
This article Data Scraping Wikipedia with Google Spreadsheets discusses using Google spreadsheets as an application platform.
It already has features that allow you to share the spreadsheet with multiple editors, as well as the ability to define forms that you can invite people to fill out who's results will be entered into the spreadsheet as a row.
Just in case its still vaguely of interest 5 months later, there is a SQL-like wrapper language for Google Spreadsheets at:
http://gqlx.twyst.co.za
Its very much an alpha release - but maybe its of some use or perhaps the code could give you some ideas.
I think if I am clear on your requirements, you want to store your data online in a Google Spreadsheet where multiple people can access that right? Then you want an app to use that data? Correct me if I am wrong.
It is possible to have Google spreadsheet as a database and the client app can directly access that data through APIs - spreadsheet APIs . If you want a simple link where people can go and update - you can also have a web app using google apps scripting. very simple to use and would solve your purpose too , why to export your data to ods, xls, csv, make your app directly over Google Spreadsheet. Would be maintainable too.

Resources