是否可以在一次通话中获取具有foursquare ID的位置的Instagram媒体?

时间:2012-11-11 18:56:35

标签: api foursquare instagram

我有一堆foursquare ID,我希望能够使用这些foursquare ID来提取Instagram媒体。

目前我只看到一种方法,它需要两个API调用。您必须先使用foursquare_v2_id(example call)调用搜索API。这将返回Instagram ID。然后我必须使用instagram id再次调用媒体API来检索媒体(example call)。

有没有人知道如何通过一次api调用来实现这些结果(仅基于foursquare_id获取位置的媒体)?

3 个答案:

答案 0 :(得分:2)

您可以通过foursquare API以及场地/照片端点获取此信息。请参阅文档here

这将返回场地的照片列表,包括其来源。您可以使用它来返回场地的所有图像,或者只返回来自Instagram的图像。

答案 1 :(得分:2)

与Instagram联系后,很明显目前无法做到这一点。如果这种情况发生了变化,我会回来并用适当的解决方案重新回答这个问题。

答案 2 :(得分:2)

我认为您必须在api下方使用才能获得Instagram图片:

https://api.foursquare.com/v2/venues/423a1a00f964a5202f201fe3/photos?oauth_token=Z5RRDGQUWEAFCANX2OT0R2O5QUWYOP1EMOCNXT1PQWKMHVNG&v=20130706&limit=200

使用foursquare id和foursquare oaurh标记,您可以获得特定的场地图像。

作为回应,您可以查看“来源”:{“name”:“Instagram”,“url”:“http://instagram.com”}。 来源名称是Instagram意味着它是一个instagram图像。

Refer: https://developer.foursquare.com/docs/venues/photos