Web one line address search - skmaps

We already have an API key because we use Skobbler maps on other products.
We have another iOS app that uses Apple maps and we would like to know if we can make a http / https request for address search. In this case we do not want to include SKMaps framework.
Is this possible?
Thank you!

Right now this is not possible - the search API is only exposed in the mobile SDKs (not via a web REST API).

Related

Node.JS white listing mobile apps?

I'm building a node.js application which serves publicly accessible https APIs.
Having said that, I want to build a middleware which should tell me the device type(android/ios/windows/web -> already done).
And if it's a mobile app accessing the APIs, I need to know app bundle ID as well e.g. com.awesome-app.app -> how to do this?
My goal here is to whitelist certain web apps and some mobile apps only.
So, is there any way I can find out mobile app's bundle ID like the way we can find out a website's origin in request headers?
Please let me know if there are other ways available to accomplish this instead of a middleware?
Thanks in advance!
Use of middlewares is the good option. I don't think there are any other ways to restrict or allow users. Using middleware is only and best way so far.
If you are just asking about your Node.js app so middleware seems to be the solution.
But you can use other services such as Apigee to filter requests.
If you don't have any authentication middleware, any app can fake the request to your app so any solution won't be good enough.

Google apps script in HTML

Is it possible to use google apps script in my HTML? I want to be able to write to a spreadsheet from a form in purely Javascript from an external framework such as Node.js.
https://developers.google.com/apps-script/
Google Apps Script's syntax is Javascript, however it is a unique server-side framework that does not behave as a library to applications outside of the Apps Script servers. (No, you won't be able to use Google Apps Script in your node.js app.)
However, that doesn't mean that your node.js app (or any other app on the web) can't interact with your spreadsheet. For instance, your app could authenticate as you using the OAuth API, then access the spreadsheet through the Google Drive API. For an example of this, see Accessing Google Spreadsheets from Node.js
Alternatively, you could roll your own spreadsheet API in Google Apps Script, to support read / write of your sheet via HTTP requests from your node.js app. There are plenty of examples of that, for example Insert new rows into Google Spreadsheet via cURL/PHP - HOW?.
Sure you can. You can use HtmlService to create your web form, then send the submission data to your Spreadsheet with server functions.
Nowadays you could use the Google Apps Script API to call your Google Apps Script code from other platforms like Node.js, actually the official docs include a quickstart for Node.js.
You can you use HtmlService, but maybe can be helpfull to read the Google Hosted Libraries https://developers.google.com/speed/libraries/
To use a Javascrtip library inside GAS, I recommend JQuery.
But Maybe, you can use Node.js inside your external website and make a AJAX Request (get or post) to a GAS and return from GAS this:
ContentService.createTextOutput(e.parameter.callback + "("+Utilities.jsonStringify(JSONDATA)+")").setMimeType(ContentService.MimeType.JSON);
After that, process it inside your AJAX request...
Mogsad is right that you might be better of with Google Drive API to interact with your Spreadsheet!
...But depending on your exact need you might have some possible interaction between external service and google apps scrip using Content service Google Dev link.
Content Service can send back several information upon GET request (ATOM, CSV, ICAL, JAVASCRIPT, JSON, RSS, TEXT, VCARD, XML). By playing around with url parameters you can get information out and in a spreadsheet, send an email, trigger some action etc!.
But that is far from a real external library and direct interaction with server side functions!

Use of OData in a web application instead of other

I read in an article that odata can be used for different combination of clients/servers.
Say I would like to develop a web application where i store data(say information about all mobile products on market) using mongoDB and use python as backend with Bottle framework to access data through browser as GET.
Then i decide to extend web app as android app. i can extend it to android without any code change on server side.
My doubt is does using odata here helps in any way? Say if i want to extend it to other clients?
Yes, you are right, you don't need to change even a single line of code on the server side if you change a client app. OData defines many conventions for the communications between the client and the server. such as:
What the URL looks like if you want to query some data
http://services.odata.org/V4/OData/OData.svc/Products?$filter=ID gt 2&$select=ID,Name,Rating,Price&$orderby=Price desc
Which http method should be used to Create/Retrieve/Update/Delete an entity
Generally speaking, Post for Create, Get for Retrieve, Patch/Put for Update, Delete for Delete.
What the payload looks like.
How to invoke a function/action
As long as the requests conform to these conventions, the server side always returns the predictable responsese regardless whether the clients is a browser or a mobile device.
I also find the examples for the odata:
https://aspnet.codeplex.com/SourceControl/latest#Samples/WebApi/OData/v4/ .
Hope this helps you.

search engines index html5 web application with nodejs backend

I'm building an html5 web application with knockoutjs + backend rest service in nodejs (custom rest api, I'm not using express and i deliver only json data - no html).
The application is working fine like it is, but I need to get indexed by google.
I populate content using ajax requests and now i need to find a solution to make those pages "visible" for search engines.
Is there any true elegant solution for this? I don't want to make another backend service(website - expressjs or php etc)
Please advice :|
Google specifies a way for your site to provide "HTML snapshots" of ajax-loaded content. Not sure how well this works or if other search engines support it.
https://developers.google.com/webmasters/ajax-crawling/docs/getting-started

Creating Spotify playlist with standalone web app

I just want to be able to create a playlist by sending / receiving http requests ( a standalone web app, not with Spotify Apps and the desktop client). I've dug around the docs and can't find a clear solution. Can someone point me in the right direction? Thanks in advance.
You can pass a list of songs—not a playlist—to the desktop player by adding the track ids to a link as below
Play
UPDATE
As of today there is an api for creating playlists: https://developer.spotify.com/web-api/create-playlist/
I just want to be able to create a playlist by sending / receiving
http requests
This isn't possible at the moment — Spotify doesn't have a web API for manipulating playlists. You may be able to hack a solution together using libSpotify, although using libSpotify in a server service this way is against the ToS.
You might want to look at https://github.com/liesen/spotify-api-server
It is limited to just one spotify account (the one you configure it with) but does allow playlist creation/manipulation via RESTish calls.

Resources