Reputation: 131
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.
Upvotes: 1
Views: 1665
Reputation: 7451
@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.
ref. FourSquare Photo upload on checkin with Android
Upvotes: 2
Reputation: 794
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
Upvotes: 1