Empowering Restaurants through Integration

Follow

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
labelRequired
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
label_outlineOptional
String
An identifier for this favorite. This is not the restaurnat ID.
restaurant_id
label_outlineOptional
String
The unique ID of the favorited restaurant.
create_time
label_outlineOptional
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
label_outlineOptional
An array of this diner's favorited restaurants.