Raam
Raam

Reputation: 10886

How does the user push API work

The foursquare user push API states

The user push API will push to your application every time a user who has granted access to your OAuth consumer checks in.

I have created a consumer and set up a webapp to handle the pushed notifications, however what I dont understand is how and where will the user grant access to my consumer? So for example if a user checkins to a shop, I will get a notification only if the user has granted access to my consumer, but how will be user even know about my consumer?

Upvotes: 1

Views: 588

Answers (1)

Jonathan Levison
Jonathan Levison

Reputation: 2617

You need to have the user to authorize your app on foursquare. This is very similar to the way it works with Facebook.

Try looking here for some help with this: https://developer.foursquare.com/overview/auth

After your users authorize your app (consumer), you can see the Realtime API docs on how to get it working and process the posts done by foursquare.

Upvotes: 1

Related Questions