Diners
The diners API sets and retrieves information about Grubbhub diners. These must be diners logged into their Grubhub accounts. Partner integrations that store diner information in their system will not be able to access diner data through these endpoints.
Paths
Get diners favorites.
GET /diners/{diner_id}/favorites/restaurants/Description
Returns a list of restaurants that the currently logged in diner has favorited.
Path Parameters
diner_id
Required
UUID
The ID of the diner whose favorites you want to retrieve.
Responses
Add a restaurant to favorites.
POST /diners/{diner_id}/favorites/restaurants/Description
Adds a restaurant to the current diner's favorites.
Responses
Return a single favorite.
GET /diners/{diner_id}/favorites/restaurants/{restaurant_id}Description
Returns the information for a single restaurant in a diner's favorites.
Responses
Remove a favorite.
DELETE /diners/{diner_id}/favorites/restaurants/{restaurant_id}Description
Removes the specified restaurant from this diner's list of favorites.
Responses
Models
FavoriteRestaurant
A restaurant that a diner has favorited along with the time that they favorited it.
Properties
id
Optional
String
An identifier for this favorite. This is not the restaurnat ID.
restaurant_id
Optional
String
The unique ID of the favorited restaurant.
create_time
Optional
java.util.Timestamp
The time on which this this restaurant was added to the diner's favorites.
ListFavoriteRestaurantResponse
An array that contains a diner's favorited restaurants and when they favorited those restaurants.
Properties
favorite_restaurants
Optional
An array of this diner's favorited restaurants.