Hi how can i send checkin to swarm via swarm api from external php application. Is there a way to send checkin via api calling as like to posting post to facebook.
Asked
Active
Viewed 1,590 times
2 Answers
2
@Gokigooooks already said important things. And URL sample:
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
EDIT
After checkin, Checkin id
will be returned. (e.g. IHR8THISVNU
)
Then you need to access the following URL
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
In addition, the image file data must be posted. The image data is sent as the POST message body on the HTTP request.

Community
- 1
- 1

Kosuke Ogawa
- 7,383
- 3
- 31
- 52
-
I can send checkin without image via foursquare api . I want to send wheckin with photo via foursquare api. How can i make that, i saw "photos/add" api but i don t understand. – reterius Oct 15 '15 at 08:40
1
As quoted here, your still gonna be using foursquare API.
First things first, you're gonna need an api key for your application to make requests to foursquare. and Yes, your users can check in from your app.
read more about checking in end point in their documentation here
good luck

Gokigooooks
- 794
- 10
- 20