2016-07-04 58 views
0

如何使用yelp API构建网址以进行yelp评论?如何使用yelp API构建网址以进行yelp评论?

"reviews": [ 
    { 
     "excerpt": "This is by far my favorite breakfast food. They have the best plain grits and one of the best omelets I\u0027ve ever had. The grits require no extra seasoning,...", 
     "id": "N95_f0ssLhVk-3_adcm0HA", 
     "rating": 5.0, 
     "rating_image_large_url": "https://s3-media3.fl.yelpcdn.com/assets/2/www/img/22affc4e6c38/ico/stars/v1/stars_large_5.png", 
     "rating_image_small_url": "https://s3-media1.fl.yelpcdn.com/assets/2/www/img/c7623205d5cd/ico/stars/v1/stars_small_5.png", 
     "rating_image_url": "https://s3-media1.fl.yelpcdn.com/assets/2/www/img/f1def11e4e79/ico/stars/v1/stars_5.png", 
     "time_created": 1.456714839E9, 
     "user": { 
     "id": "v6q8B9nEHBK25EuNIUF09g", 
     "image_url": "http://s3-media4.fl.yelpcdn.com/photo/zzXwod9kRw5BC-OZn2S6Dg/ms.jpg", 
     "name": "Ashley M." 
     } 
    } 

我可以看到这里的评论信息,但我看不到链接到审查,以做到像水木清华“更多”。有人可以帮我吗?

回答

0

该解决方案将是不便那样:

url.substring(0, url.indexOf("?")) + "?hrid=" + reviewId;