2013-01-10 84 views
0

我的总体目标是如何在一个私人网络应用程序上显示来自一组朋友的签入(最近的第一次)。是否有可能通过Foursquare实时API获取多个用户签到

这可能吗? 如果是这样,有人可以引导我走向正确的方向。

预先感谢您:)

+0

你问是否有办法只抓住组签入? – Jonathan

+0

没有抱歉。我想知道实时API是否允许注视一群人的入住。因此,我可以将最近签到的朋友放在页面顶部。这有意义吗? –

+0

这些随机的人,还是他们会允许oAuth? – Jonathan

回答

1

只要他们的OAuth应用程序,你应该能够做到这一点。除非明确允许你出于明显的安全原因,否则你不能这样做。如果你想要解决这个问题,你可以通过网络抓取,但这完全是另一个问题。

看看他们的实时API:https://developer.foursquare.com/overview/realtime

创建应用程序,然后利用他们的用户推送API - 每当其中一个检查中,应该推动这样的事情到你的服务器:

 { 
      "id": "4e6fe1404b90c00032eeac34", 
      "createdAt": 1315955008, 
      "type": "checkin", 
      "timeZone": "America/New_York", 
      "user": { 
       "id": "1", 
       "firstName": "Jimmy", 
       "lastName": "Foursquare", 
       "photo": "https://foursquare.com/img/blank_boy.png", 
       "gender": "male", 
       "homeCity": "New York, NY", 
       "relationship": "self" 
      }, 
      "venue": { 
       "id": "4ab7e57cf964a5205f7b20e3", 
       "name": "foursquare HQ", 
       "contact": { 
        "twitter": "foursquare" 
       }, 
       "location": { 
        "address": "East Village", 
        "lat": 40.72809214560253, 
        "lng": -73.99112284183502, 
        "city": "New York", 
        "state": "NY", 
        "postalCode": "10003", 
        "country": "USA" 
       }, 
       "categories": [ 
        { 
         "id": "4bf58dd8d48988d125941735", 
         "name": "Tech Startup", 
         "pluralName": "Tech Startups", 
         "shortName": "Tech Startup", 
         "icon": "https://foursquare.com/img/categories/building/default.png", 
         "parents": [ 
          "Professional & Other Places", 
          "Offices" 
         ], 
         "primary": true 
        } 
       ], 
       "verified": true, 
       "stats": { 
        "checkinsCount": 7313, 
        "usersCount": 565, 
        "tipCount": 128 
       }, 
       "url": "http://foursquare.com" 
      } 
     } 

祝你好运!

+0

感谢您的及时响应! :) –

相关问题