我的總體目標是如何在一個私人網絡應用程序上顯示來自一組朋友的簽入(最近的第一次)。是否有可能通過Foursquare實時API獲取多個用戶簽到
這可能嗎? 如果是這樣,有人可以引導我走向正確的方向。
預先感謝您:)
我的總體目標是如何在一個私人網絡應用程序上顯示來自一組朋友的簽入(最近的第一次)。是否有可能通過Foursquare實時API獲取多個用戶簽到
這可能嗎? 如果是這樣,有人可以引導我走向正確的方向。
預先感謝您:)
只要他們的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"
}
}
祝你好運!
感謝您的及時響應! :) –
你問是否有辦法只抓住組簽入? – Jonathan
沒有抱歉。我想知道實時API是否允許注視一羣人的入住。因此,我可以將最近簽到的朋友放在頁面頂部。這有意義嗎? –
這些隨機的人,還是他們會允許oAuth? – Jonathan