Review/Rating Page Technical Documentation
Current Curl API:
curl --request POST \
--url https://hungryhub.com/api/v5/reviews.json \
--header 'Content-Type: multipart/form-data' \
--header 'X-HH-Language: en-US' \
--cookie _auth_app_session=TSs5aEhxdmJxYmVKdGJOY28zRFdhMnIyUnJveHNTRmwydCtxUlRwTC8wYkFHdUlPdms0ZDNlM2tIb2tsTGRFVkFCT0pFanV6MVU4QTUwazFXaTg0VXE3aGY2RkNLVExpaU1zeGJXN1UzcmsxM2JFYzdISjNTRjJkSFVYamlucmRtR1J3Wnhza0xCcWttQUR4MlU5YlBwVy9JRDI5cVlnN0pYVm1CTVltVjRUeCtyVGRMNy9DRjJyTlJSa3JDSGtWLS1xVzMvbGVyNjliUzZ1WVc5SUh2dnF3PT0%253D--5ce5fa5086c7e88669cc37aa164c86c485bc91af \
--form minor_version=3 \
--form source=hh_ios \
--form access_token=XWEDMSsbhfwG393dB9TTwucORiqP4rK3PyddKd4Q57A \
--form 'review[disclose_review]=false' \
--form 'review[rating]=3' \
--form 'review[food]=1' \
--form 'review[ambience]=2' \
--form 'review[service]=3' \
--form 'review[value]=4' \
--form 'review[occasion]=everyday_dining' \
--form 'review[register]=true' \
--form 'review[recommend_for][solo_dining]=true' \
--form 'review[recommend_for][friends]=true' \
--form 'review[recommend_for][couple]=true' \
--form 'review[recommend_for][business]=true' \
--form 'review[recommend_for][family]=true' \
--form 'review[recommend_for][special_occasion]=true' \
--form 'review[comment]=test i wanna test something special to this one asd asd asd asd asd asd asd asd asd ada adads adsadadsasd test i wanna test something special to this one asd asd asd asd asd asd asd asd asd ada adads adsadadsasd test i wanna test something special to this one asd asd asd asd asd asd asd asd asd ada adads adsadadsasd' \
--form 'review[reservation_id]=314037' \
--form 'review[photos][]=@/Users/name/Downloads/akci6imltjochjka3h2z.jpeg' \
--form 'review[social_distancing]=4' \
--form 'review[overall_cleanliness]=5' \
--form 'review[staff_protection]=3'
Endpoint API: {{ base_api }}/reviews.json Default parameters:
- access_token
- minor_version
- source
- review[reservation_id]
- review[register]
Rating Bar Section

- review[rating] (from average rating in integer)
- review[food]
- review[ambience]
- review[service]
- review[value] Note: all values are integers 1-5
Upload Photos Section

- review[photos][] (mutipart array files)
Share your experience section

- review[comment]
- review[favorite_menu] (new parameter)
What was the Occasion? (Single Selection)

- review[occasion] Current available value from old code:
- date
- everyday_dining
- business_meal
- meetup_with_friends
- special_occassion
Possible Changes

- What is the current field for
review[occasion]? - If free text, we can put anything in that field. If an enum may need to add a new column
What do you recommend? (Multiple Selection)
All values are in boolean
- review[recommend_for][solo_dining] = true/false
- review[recommend_for][friends] = true/false
- review[recommend_for][couple] = true/false
- review[recommend_for][business]
- review[recommend_for][family]
- review[recommend_for][special_occasion]
- review[recommend_for][other] = (string/text)
Possible Changes

- The current field looks like defined on each different column
- Need to add another column for a new occasion? free text
Disclose Review Section

- review[disclose_review] true/false
New Requirement:
- Censored user name, currently all closed reviewsare named as "Hungry Hub Diner"
Summary Changes
- Add new parameters
review[favorite_menu]for the new field favorite menu - Censored user name, currently all closed reviews are named as "Hungry Hub Diner"
- Possible Changes:
- Dining Occasion: check
review[occasion]is accepting text or enum. Make it accept text or create new params forreview[custom_occassion]. - Recommended For: Create new param
review[recommend_for][other]= (string/text)
- Dining Occasion: check
Final Curl:
curl --request POST \
--url https://hungryhub.com/api/v5/reviews.json \
--header 'Content-Type: multipart/form-data' \
--header 'X-HH-Language: en-US' \
--cookie _auth_app_session=TSs5aEhxdmJxYmVKdGJOY28zRFdhMnIyUnJveHNTRmwydCtxUlRwTC8wYkFHdUlPdms0ZDNlM2tIb2tsTGRFVkFCT0pFanV6MVU4QTUwazFXaTg0VXE3aGY2RkNLVExpaU1zeGJXN1UzcmsxM2JFYzdISjNTRjJkSFVYamlucmRtR1J3Wnhza0xCcWttQUR4MlU5YlBwVy9JRDI5cVlnN0pYVm1CTVltVjRUeCtyVGRMNy9DRjJyTlJSa3JDSGtWLS1xVzMvbGVyNjliUzZ1WVc5SUh2dnF3PT0%253D--5ce5fa5086c7e88669cc37aa164c86c485bc91af \
--form minor_version=3 \
--form source=hh_ios \
--form access_token=XWEDMSsbhfwG393dB9TTwucORiqP4rK3PyddKd4Q57A \
--form 'review[disclose_review]=false' \
--form 'review[rating]=3' \
--form 'review[food]=1' \
--form 'review[ambience]=2' \
--form 'review[service]=3' \
--form 'review[value]=4' \
--form 'review[occasion]=everyday_dining' \
--form 'review[custom_occasion]=community gathering' \
--form 'review[register]=true' \
--form 'review[recommend_for][solo_dining]=true' \
--form 'review[recommend_for][friends]=true' \
--form 'review[recommend_for][couple]=true' \
--form 'review[recommend_for][business]=true' \
--form 'review[recommend_for][family]=true' \
--form 'review[recommend_for][special_occasion]=true' \
--form 'review[recommend_for][other]=true' \
--form 'review[comment]=test i wanna test something special to this one asd asd asd asd asd asd asd asd asd ada adads adsadadsasd test i wanna test something special to this one asd asd asd asd asd asd asd asd asd ada adads adsadadsasd test i wanna test something special to this one asd asd asd asd asd asd asd asd asd ada adads adsadadsasd' \
--form 'review[favorite_menu]=Bakso, Mie Ayam, Es Jeruk' \
--form 'review[reservation_id]=314037' \
--form 'review[photos][]=@/Users/name/Downloads/akci6imltjochjka3h2z.jpeg' \
--form 'review[social_distancing]=4' \
--form 'review[overall_cleanliness]=5' \
--form 'review[staff_protection]=3'