为什么 Foursquare API 不返回某些场地的菜单 [英] Why is Foursquare API not returning menu for certain venues

查看:23
本文介绍了为什么 Foursquare API 不返回某些场地的菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人能解决这个问题:

I am hoping someone can figure this out:

通过 Foursquare API,您可以通过提供特定餐厅的 Venue_ID 来获取菜单:

Through the Foursquare API, you can get the menu by providing the Venue_ID of a particular restaurant:

例如https://api.foursquare.com/v/47a1bddbf964a5207a4d1fe3/menu?oauth_token=my_auth_token_goes_here&v=20130928

这行得通.

但它不适用于以下(以及其他几家)餐厅:

But it doesn't work for the following (and several other) restaurants:

https://api.foursquare.comv2/venues/4fa027ede4b0e4be23b3374e/menu?oauth_token=my_auth_token_goes_here&v=20130928

  • 这给了我一个回复,但菜单是空的!:(

您可以通过在 https://developer 上试用来确认.Foursquare.com/docs/explore#req=venues/4fa027ede4b0e4be23b3374e/menu

希望对此有任何帮助/见解.

Would appreciate any help/insights on this.

谢谢!

推荐答案

Foursquare 只允许通过其公共 API 重新分发来自某些提供商的菜单数据.不幸的是,您偶然发现了一个这样的例子.如果menus 对象内的count0,则应妥善处理这种情况.

Foursquare is only allowed to redistribute menu data from certain providers through its public API. Unfortunately you've stumbled upon an example of this. If count inside the menus object is 0, you should handle this situation gracefully.

这篇关于为什么 Foursquare API 不返回某些场地的菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆