2015-09-29 34 views

回答

2

@Gokigooooks已经说重要的事情在终点检查。和URL样本:

https://api.foursquare.com/v2/checkins/add? 
venueId=IHR8THISVNU& // The venue where the user is checking in 
broadcast=public,facebook& // POST TO FACEBOOK 
ll=33.7,44.2& // User location 
alt=44.038330& // User altitude (option) 
oauth_token=(OAUTH_TOKEN)& // User aouth token (need login) 
v=20150929 // api version 

编辑

签后签入id将被退回。 (例如IHR8THISVNU

然后您需要访问以下网址

https://api.foursquare.com/v2/photos/add? 
checkinId =IHR8THISVNU& // the ID of a checkin owned by the user 
broadcast=facebook& // POST TO FACEBOOK 
public=1& // allows for making the photo public and viewable at the venue (option) 
oauth_token=(OAUTH_TOKEN)& // User aouth token (need login) 
v=20150929 // api version 

此外,图像文件数据必须张贴。图像数据作为HTTP请求的POST消息正文发送。

ref。 FourSquare Photo upload on checkin with Android

+0

非常感谢你小川康介,非常感谢你 – reterius

+0

我可以通过foursquare api发送没有图像的登记。我想通过foursquare api发送与照片wheckin。我怎么能做到这一点,我看到“照片/添加”API,但我不明白。 – reterius

+0

@reterius我编辑了我的答案 –

1

如引用here,你仍然会使用foursquare API。首先要做的第一件事是,你需要一个API key来让你的应用程序向foursquare发出请求。是的,您的用户可以从您的应用程序登录。

阅读更多关于他们的文档here

好运