如何使用yelp API构建用于yelp评论的url?
"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."
}
}我可以在这里看到评论信息,但我看不到链接到评论来做smth,如“阅读更多”。有人能帮我一下吗?
发布于 2016-07-05 17:18:11
解决方案将是这样的:
url.substring(0, url.indexOf("?")) + "?hrid=" + reviewId;https://stackoverflow.com/questions/38184639
复制相似问题