Last active
December 23, 2015 23:09
-
-
Save predictioniogists/6707928 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// When a new destination is added: | |
try { | |
// sightseeing spot type may be "museums", "landmarks", etc | |
String[] itypes = {"destinations", "sightseeing", "sightseeing spot type 1", "sightseeing spot type 2"}; | |
client.createItem("destination ID or name", itypes); | |
} catch (Exception e) { | |
handleException(e); | |
} | |
// When the logged-in user goes to a destination: | |
// use built-in action name "conversion" to represent this action | |
try { | |
client.userActionOnItem("conversion", "destination ID or name"); | |
} catch (Exception e) { | |
handleException(e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment