Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  1. Create two additional picos by signing up for two Kynetx accounts besides the one you used for the Foursquare exercise.

    Info

    Note: if you're using GMail, you can create aliases by appending <text> to the username. So, if you're GMail address is foo@gmail.com, you can send email to foo+hello@gmail.com or foo+45@gmail.com and the mail will get to you. This makes it convenient to create test accounts from a single email address.

  2. For each of these two picos, create an event channel labeled "location notification"
  3. Use your Foursquare Ruleset from the Foursquare Exercise:
    1. Copy the event channel identifiers (ECIs) from each of the channels you created in the preceding step into a subscription map data structure in the global block
    2. Write a dispatcher rule that uses foreach to loop over the subscription map (foreach) and the event:send() action to send a location:notification even to each subscriber.
  4. Create and register a ruleset that does the following:
    1. Write a location_catch rule that listens for location:notification events
    2. Store the latest location data in an entity variable
    3. Write a location_show rule that shows the location in SquareTag (see (Classic) Quickstart for SquareTag). 
  5. You'll need to install the ruleset created in the preceding step into each of the picos you created in step 1. 
  6. Test the result by checking in on Foursquare and then viewing the app in either (both) of the subscriber picos. 

...