Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save predictioniogists/6707928 to your computer and use it in GitHub Desktop.
Save predictioniogists/6707928 to your computer and use it in GitHub Desktop.
// 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