How do I connect Google Sheets as a database to a Kotlin app? - kotlin

What I plan to achieve is be able to pull data from the sheets.
Name
I.D
Image URL
Website URL
and populate a text view, image view and webview.

The endpoint mentioned http://spreadsheets.google.com/feeds/<feed>/<key>/<worksheet>/public/<...>?alt=json was provided by an older Google API called GData (Google Data Protocol).
That API however is being deprecated. Users of GData API (Spreadsheet endpoint) must migrate to Sheets API.
To fetch the values of the Sheets file from your Kotlin app, I’d recommend using the method spreadsheets.values/get.

Related

I insert an image in Google Sheets as a blob rather than link it with a URL

I want to insert a blob object (.jpg image) with Google Sheets API.
Does Google Sheets API allow for blobs inside the spreadsheet's cells?
I know that inserting the image directly into the spreadsheet by hand without using API is possible.
In the current stage, unfortunately, the image blob cannot be directly put into Google Spreadsheet using Sheets API. So, it is required to use the workarounds. In this answer, I would like to propose the 2 workarounds for achieving your goal.
Pattern 1:
In this pattern, IMAGE of the built-in function of Google Spreadsheet is used. The flow is as follows.
Upload the image to Google Drive using Drive API.
Share publicly the uploaded image using Drive API and receive the URL of the image.
Put a function of =IMAGE("URL") to a cell using Sheets API.
By this flow, your goal is achieved. If you can know the direct link of the image, you can directly use only the 3rd flow of the above flow.
Pattern 2:
In this pattern, the image is inserted into the Spreadsheet using Web Apps created by Google Apps Script.
Upload the image to Google Drive using Web Apps.
Put the image blob into the Spreadsheet using Web Apps.
By this flow, your goal is achieved.
References:
IMAGE
Web Apps

Sheets API V4 Spreadsheet View Properties

I'm trying to zoom into a google Spreadsheet using an API call. Is this possible? I would also like to enable full screen from another API call once I dynamically create a spreadsheet, but I can't find it in the documentation, anyone knows how to do this?
Currently, the functionality that lets you Zoom in and out the spreadsheets is not supported in Base Script Services (Class Ui). Also, you have a similar SO post, have a check.

When I've to use the HEREMAPS REST API

I'm new in here maps and don't know
1- When I've to use the REST API instead of JavaScript API
as I know the REST API returns only xml or json object!
Does it mean I'll have to use the JavaScript API to do visual effects?!!!
2- also I don't know how to save the map to display it again to the user after he doing some changes on it.
1- When I've to use the REST API instead of JavaScript API as I know the REST API returns only xml or json object so,
Does it mean I'll have to use the JavaScript API to do visual effects and what are the advantages of using REST?!!!
[TCS] : The HERE Maps API for JavaScript is a set of programming interfaces that enable developers to build Web applications with feature rich, interactive HERE Maps at their center. Whereas HERE REST APIs provide a flexible and fast access to variety of map data and functionalities. The HERE Maps API for JavaScript 3.0 exposes the functionality of a collection of RESTful Web Services in the following four core components.
Yes, the REST API only provides responses in form of XML or JSON, to show it on a map you will need the Javascript API. You will find examples to explore on our playground on the link http://developer.here.com/api-explorer
2- How to create a drag-able route not a drag-able waypoint?
[TCS] : Dragable route is possible to implement , you will find an example on the following link
http://tcs.it.here.com/Examples/src/HLP3_Fleet.html
3- How to save the map to display it again to the user after he doing some changes?
[TCS] : We do not provide as part of our product portfolio to store any user related data once a session is terminated. A custom solution will have to be developed at your side if you would like to save any changes done on a map by a user and show these again when the user returns to the map.
If you would like to save the map as an image however that is possible using the 'Capture' functionality within the JS API. The following link also shows the Capture functionality

Can I Read/Write google spreadsheets using GET/POST methods

I want to know is it possible to read/write google spreadsheets using GET/POST methods with UIWebView?
There are two Google API's that might interest you:
Google Spreadsheets - Used read/manipulate spreadsheet data
Google Documents - To create/organize documents (spreadsheets)
Unless you actually want to display a web page, I would advice against using UIWebView. HTTP requests against API's are usually made using NSURLRequest and NSURLConnection. They give you complete control over the request and response handling.
While a custom implementation written yourself against the documents/spreadsheets API could suffice, most Google API's are an implementation of the Google Data protocol. This protocol has multiple libraries available that take care of the actual implementation on top of NSURLRequest.
A client library and sample code is available to access the spreadsheets API using Objective-C.

Does the Google+ Hangouts API support filling app fields on the runtime?

I am trying to build a app using the hangout API, starter app.
Does the Hangouts API have support for data fields to be added on runtime?
For example,
a. If we need to add team members to our app
b. Or when we do 'Create Application' (https://appengine.google.com/)
c. When we enter AppEngine app ID to Gadget URL (https://code.google.com/apis/console/?api=plusHangouts)
Can we do the above using Python code and using the API (if there are any)?
As documented in Google APIs Console Help we don't let people programmatically register data into the APIs console.
Don't forget that that the current restrictions are because we are in a developer preview.