...
- Create an event channel in your Kynetx (SquareTag) account labeled "Foursquare Checkins" using KDK (Kynetx Developer Kit)
- Use the channel ID to formulate an event signal URL (ESL) that uses the alternate encoding to raise a
foursquare:checkin
event. This will become the Foursquare Push URL that you give to Foursquare below. - Create a
foursquare
ruleset and install it in your account using KDK:- Write a rule called
process_fs_checkin
that listens for thefoursquare:checkin
event. - The rule should store the
venue name
,city
,shout
, andcreatedAt
event attributes in entity variables. - Write a rule called
display_checkin
that shows the results in SquareTag. - You will need to register the ruleset and install it in your SquareTag account.
- Write a rule called
- Test the ruleset by using
curl
or your browser to call the ESL you created above. You will have to give it event attributes. - Create an application at Foursquare, manually go through the OAuth sequence for it, and configure the Push URL to contain the ESL you created above. Remember that Foursquare require
https
. - Use the Foursquare test button to raise the event from Foursquare. You should see results on SquareTag.
- Checkin with Foursquare on your phone. You should see the result in your SquareTag application.
...