Skip to content

Instantly share code, notes, and snippets.

@chunyan
Created March 21, 2014 05:02
Show Gist options
  • Select an option

  • Save chunyan/9679846 to your computer and use it in GitHub Desktop.

Select an option

Save chunyan/9679846 to your computer and use it in GitHub Desktop.
out-of-network recommendation disappears in D2 page.
https://dev-api.gemshare.com/secure/questions/242/responses?token=07f87b6a92cb4dc98524174d511159eb
search for "Big Dog Surf Camp"
The recommender Nicki Storm is not in my network so her recommendation doesn't appear on the gem details page
{
"responses_yes": [
{
"relationship": {
"myself": false,
"via_text": "via Claudine Ryan, Lee Hsu & Nina Thompson",
"direct": false,
"out_of_network": false
},
"created": 1395080898,
"user": {
"first_name": "Noelle",
"last_name": "Salmi",
"display_name": "Noelle Salmi",
"available_invitations": 27,
"role_guest": false,
"picture_uuid": "2e887e3a14374ef79c3644537c4010d0",
"picture_url": "https:\/\/d3h5hwyul9hvxm.cloudfront.net\/images\/profiles\/2e887e3a14374ef79c3644537c4010d0.jpg",
"created": 1377825122,
"id": 111,
"zipcode": "94115"
},
"referred_to_responder_id": null,
"gem_id": 3124,
"responder_id": 58467,
"response_type": "yes",
"id": 1410,
"question_id": 242
},
{
"relationship": {
"myself": false,
"via_text": null,
"direct": true,
"out_of_network": false
},
"created": 1395085355,
"user": {
"first_name": "Abby",
"last_name": "Kirigin",
"display_name": "Abby Kirigin",
"available_invitations": 30,
"role_guest": false,
"picture_uuid": "4b211cac446c403dab754e2b7b7227c4",
"picture_url": "https:\/\/d3h5hwyul9hvxm.cloudfront.net\/images\/profiles\/4b211cac446c403dab754e2b7b7227c4.jpg",
"created": 1378871723,
"id": 146,
"zipcode": "94403"
},
"referred_to_responder_id": null,
"gem_id": 2611,
"responder_id": 58498,
"response_type": "yes",
"id": 1412,
"question_id": 242
},
{
"relationship": {
"myself": false,
"via_text": null,
"direct": false,
"out_of_network": true
},
"created": 1395086198,
"user": {
"first_name": "Nikki",
"last_name": "Storm",
"display_name": "Nikki Storm",
"available_invitations": 30,
"role_guest": false,
"picture_uuid": "11b5ae639bd4423f8baed5f5a12f743d",
"picture_url": "https:\/\/d3h5hwyul9hvxm.cloudfront.net\/images\/profiles\/11b5ae639bd4423f8baed5f5a12f743d.jpg",
"created": 1384908459,
"id": 729,
"zipcode": "94939"
},
"referred_to_responder_id": null,
"gem_id": 3128,
"responder_id": 58739,
"response_type": "yes",
"id": 1413,
"question_id": 242
}
],
"asker": {
"user": {
"first_name": "Marivi",
"last_name": "Tejada",
"display_name": "Marivi Tejada",
"available_invitations": 30,
"role_guest": false,
"picture_uuid": "2a2cec412c3a41dc98261920a1ac9316",
"picture_url": "https:\/\/d3h5hwyul9hvxm.cloudfront.net\/images\/profiles\/2a2cec412c3a41dc98261920a1ac9316.jpg",
"created": 1377825122,
"id": 99,
"zipcode": "94122"
},
"relationship": {
"myself": false,
"via_text": "via Donna Macklin, Nina Thompson & Claudine Ryan",
"direct": false,
"out_of_network": false
}
},
"question": {
"updated": 1395026838,
"description": "My 10-year old daughter is eager to learn how to surf. Anyone know of a good instructor or camp within driving distance of San Francisco?",
"created": 1395026838,
"asker_id": 99,
"id": 242,
"subject": "Surf camp for a 10-year old"
},
"businesses": [
{
"business_keywords": [
],
"ratings": [
{
"num_ratings": 0,
"rating": -1
},
{
"num_ratings": 1,
"rating": 3
},
{
"num_ratings": 0,
"rating": 1
}
],
"saved_to_consider": false,
"business": {
"phone_number": "(415) 518-3805",
"website": "http:\/\/www.bigdogsurfcamp.com\/",
"updated": 1395086197,
"service_areas": null,
"verified": true,
"google_id": "db2aa8a51d77c89b9775fb61294949c8584ffa43",
"contact_info": null,
"created": 1395086197,
"zipcode": "94941",
"longitude": -122.5244446,
"email": null,
"has_google_reference": true,
"address": "254 Shoreline Hwy, Mill Valley, CA, United States",
"latitude": 37.8820076,
"business_name": "Big Dog Surf Camp",
"id": 2555
},
"recs": [
{
"rec": {
"updated": 1395086197,
"why_recommend": "This is the best surf camp around! I have recommended this surf camp to more friends and clients. I believe the kids can start at age 5 which is amazing and all the teachers are fantastic!!! There are a few camps out there but this one is the best. Also, if I remember correctly-they will carpool over the hill so it makes the trek doable.",
"pro_id": 2555,
"free_text": null,
"person_at_business": null,
"id": 3128,
"user_id": 729,
"gem_rating": 3,
"created": 1395086197,
"thanked": false,
"share_url": "https:\/\/dev-www.gemshare.com\/#g\/HjFQVpeceSW",
"number_of_thanks": 0,
"temp_keywords": null
},
"recommender": {
"user": {
"first_name": "Nikki",
"last_name": "Storm",
"display_name": "Nikki Storm",
"available_invitations": 30,
"role_guest": false,
"picture_uuid": "11b5ae639bd4423f8baed5f5a12f743d",
"picture_url": "https:\/\/d3h5hwyul9hvxm.cloudfront.net\/images\/profiles\/11b5ae639bd4423f8baed5f5a12f743d.jpg",
"created": 1384908459,
"id": 729,
"zipcode": "94939"
},
"relationship": {
"myself": false,
"via_text": null,
"direct": false,
"out_of_network": true
}
}
}
],
"num_recs": 1,
"business_share": {
"able": false,
"share_url": null
},
"num_recommenders": 1
},
{
"business_keywords": [
"Summer Camp",
"Surf Instructor \/ Class \/ School"
],
"ratings": [
{
"num_ratings": 0,
"rating": -1
},
{
"num_ratings": 1,
"rating": 3
},
{
"num_ratings": 0,
"rating": 1
}
],
"saved_to_consider": false,
"business": {
"phone_number": "(650) 867-0315",
"website": "http:\/\/www.openoceansurfing.com\/",
"updated": 1390934998,
"service_areas": "Half Moon Bay",
"verified": true,
"google_id": null,
"contact_info": "",
"created": 1390863322,
"zipcode": "94019",
"longitude": -122.4155655,
"email": null,
"has_google_reference": false,
"address": "Half Moon Bay, CA",
"latitude": 37.3890572,
"business_name": "Open Ocean Surfing",
"id": 2128
},
"recs": [
{
"rec": {
"updated": 1390863322,
"why_recommend": "When our original surf lesson appointment flaked, my husband and I were pretty upset. But we called around and found Dave who was able to give us a lesson on the spot! We really lucked out because I can't imagine having had a better instructor. I was pretty nervous but he made me feel very safe. He explained everything clearly and helped us have a really great time. He also told us that he does summer camps for kids. Afterwards I spoke to a friend who had sent her kids to his camp and they loved it! ",
"pro_id": 2128,
"free_text": null,
"person_at_business": "Dave",
"id": 2611,
"user_id": 146,
"gem_rating": 3,
"created": 1390863322,
"thanked": false,
"share_url": "https:\/\/dev-www.gemshare.com\/#g\/BxxcdndUW2N",
"number_of_thanks": 0,
"temp_keywords": null
},
"recommender": {
"user": {
"first_name": "Abby",
"last_name": "Kirigin",
"display_name": "Abby Kirigin",
"available_invitations": 30,
"role_guest": false,
"picture_uuid": "4b211cac446c403dab754e2b7b7227c4",
"picture_url": "https:\/\/d3h5hwyul9hvxm.cloudfront.net\/images\/profiles\/4b211cac446c403dab754e2b7b7227c4.jpg",
"created": 1378871723,
"id": 146,
"zipcode": "94403"
},
"relationship": {
"myself": false,
"via_text": null,
"direct": true,
"out_of_network": false
}
}
}
],
"num_recs": 1,
"business_share": {
"able": false,
"share_url": null
},
"num_recommenders": 1
},
{
"business_keywords": [
],
"ratings": [
{
"num_ratings": 0,
"rating": -1
},
{
"num_ratings": 0,
"rating": 3
},
{
"num_ratings": 1,
"rating": 1
}
],
"saved_to_consider": false,
"business": {
"phone_number": null,
"website": null,
"updated": 1395080898,
"service_areas": null,
"verified": false,
"google_id": null,
"contact_info": "www.surfcamppacifica.com, 650-245-2924",
"created": 1395080898,
"zipcode": null,
"longitude": null,
"email": null,
"has_google_reference": false,
"address": null,
"latitude": null,
"business_name": "Surf Camp Pacifica",
"id": 2552
},
"recs": [
{
"rec": {
"updated": 1395080898,
"why_recommend": "My girls and 2 friends did a week of surf camp here for a week. They were all 9, 11 and 12 years old. Despite the foggy Pacifica weather, they loved it! Tip: bring bottles with hot water so they can rinse off after surfing. They will love you! ",
"pro_id": 2552,
"free_text": null,
"person_at_business": null,
"id": 3124,
"user_id": 111,
"gem_rating": 1,
"created": 1395080898,
"thanked": false,
"share_url": "https:\/\/dev-www.gemshare.com\/#g\/5j9YxLz1eB2",
"number_of_thanks": 0,
"temp_keywords": null
},
"recommender": {
"user": {
"first_name": "Noelle",
"last_name": "Salmi",
"display_name": "Noelle Salmi",
"available_invitations": 27,
"role_guest": false,
"picture_uuid": "2e887e3a14374ef79c3644537c4010d0",
"picture_url": "https:\/\/d3h5hwyul9hvxm.cloudfront.net\/images\/profiles\/2e887e3a14374ef79c3644537c4010d0.jpg",
"created": 1377825122,
"id": 111,
"zipcode": "94115"
},
"relationship": {
"myself": false,
"via_text": "via Claudine Ryan, Lee Hsu & Nina Thompson",
"direct": false,
"out_of_network": false
}
}
}
],
"num_recs": 1,
"business_share": {
"able": false,
"share_url": null
},
"num_recommenders": 1
}
],
"keywords": "",
"responses_refer": [
],
"responses_no": [
{
"relationship": {
"myself": false,
"via_text": null,
"direct": true,
"out_of_network": false
},
"created": 1395033706,
"user": {
"first_name": "Claudine",
"last_name": "Ryan",
"display_name": "Claudine Ryan",
"available_invitations": 53,
"role_guest": false,
"picture_uuid": "4d4e9b38dbfb442282353abe5f2e7b04",
"picture_url": "https:\/\/d3h5hwyul9hvxm.cloudfront.net\/images\/profiles\/4d4e9b38dbfb442282353abe5f2e7b04.jpg",
"created": 1377825122,
"id": 3,
"zipcode": "94114"
},
"referred_to_responder_id": null,
"gem_id": null,
"responder_id": 58386,
"response_type": "no",
"id": 1408,
"question_id": 242
},
{
"relationship": {
"myself": false,
"via_text": "via Nina Thompson",
"direct": false,
"out_of_network": false
},
"created": 1395088736,
"user": {
"first_name": "Behzad",
"last_name": "Mohit",
"display_name": "Behzad Mohit",
"available_invitations": 30,
"role_guest": false,
"picture_uuid": "6a94f59d56064120839dc3a147a17280",
"picture_url": "https:\/\/d3h5hwyul9hvxm.cloudfront.net\/images\/profiles\/6a94f59d56064120839dc3a147a17280.jpg",
"created": 1381886239,
"id": 362,
"zipcode": "94904"
},
"referred_to_responder_id": null,
"gem_id": null,
"responder_id": 58622,
"response_type": "no",
"id": 1414,
"question_id": 242
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment