Google Place API - Cuisine List - web-services

Does anyone know where I can get a master DB list of all the cuisine types that Google has. I am using the Google Places API to do a search, but we need all the available cuisines to allow a user to search for and then ping Google. Thanks!

I am not certain you need a list of all possible cuisines to allow for search - should be able to use Google Places API Text Search Service:
https://developers.google.com/places/web-service/search#TextSearchRequests
You could use the query parameter, along with type of restaurant to get restaurants with a given cuisine type.

Related

How to use plotly Dash as a dashboard for user specific data

I want to integrate plotly Dash with my web app. I have data regarding a user like
leads found
meeting done
orders found
and other details of users per company.
So I want to pass the company_id and user_id and then get the report for only the specific user. He can filter between dimension or anything but he can't see the data for other users. What I found online is mostly a full dashboard. Is there an option to pass parameters in the api call, and then pass the data to plotly DASH and generate graph?
Please provide any resources if possible.
Not sure but maybe try to give the port:
https://example.com:5000/api/hello

Google Places Web API photos

I use Django-google-places extension to get a list of photos (place.photos).
But the list I get is very unpredictable - pictures of users, food, etc.
Does Google provide something to get place's main picture that represents cafe/restaurant better?
Or maybe there's a way to get the best picture from list?
Place Search returns summary information about place. Maybe you can try to get photos from Place Search endpoint. https://developers.google.com/places/web-service/search.

REST design - Get a collections of reduced ressource

I have a web service to retrieve the list of my users : /users
My User entity has a lot of attributes (with many relationship such as roles, address, etc) and it begins to be painful to retrieve the whole list.
I want to create a new web service to retrieve a list of a minimal User DTO. This DTO contains only the username, the first name and the last name.
What's your suggestions for this new URI ?
/users-minimal
/users/minimal
/users/func/get-minimal
... ?
If what's changing is merely the representation, you should make that available as a different media-type, not a different URI. For instance, if you have application/vnd.mycompany.user.v1+json for a normal user, you could use application/vnd.mycompany.user-minimal.v1+json for the minimal.
Now, you probably don't use custom media types like the above, and if you are asking about RESTful URIs, you're probably not using HATEOAS either. For those REST-like HTTP APIs, you should probably use a querystring parameter instead. Something like /users?minimal=1 or /users/?fields=username,first_name,last_name.

Facebook Graph API to search user statuses

I am trying to pull some of my facebook statuses that contain a particular keyword and show them on a web page, what is the url query string I should use?
The best I can came up with is graph.facebook.com/me/statuses
But it returns all the statuses, but i want statuses that contain a particular keyword, such in a search, how should I do it? Or is it even possible?
You'll have to manually go through the statuses returned from /me/statuses to find the ones that you care about. Facebook doesn't really let you use their computing power to search stuff like that.

Is there a Web Service API to the Google Product Search?

I want to call the Google product search and get back a parse-able XML file rather than having to scrape the HTML. I'm not looking for a SOAP based service, but a service that returns XML based on a URL passed in.
Correction--this did NOT work:
The Google Base API lists only a subset of Google product sellers (apparently only those who are active users of the Google Base product.)
http://code.google.com/apis/base/docs/2.0/attrs-queries.html
I eventually ended up using a screen scraping solution and then found that the data was too inconsistant to use for my purposes at all. :-(
http://answers.oreilly.com/topic/2165-how-to-search-google-and-bing-in-c/
use that refer link ,hopefuly it'll very usefull with you all guys