Skip to content

Instantly share code, notes, and snippets.

@opsb
Created March 13, 2012 11:52
Show Gist options
  • Select an option

  • Save opsb/2028372 to your computer and use it in GitHub Desktop.

Select an option

Save opsb/2028372 to your computer and use it in GitHub Desktop.
Example of using crossrider script
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<script src="http://crossrider.com/crossrider.api.js" type="text/javascript"></script>
<script>
crossriderAPI.askForAsyncAppAPI(YOUR_APP_ID, function(appAPI) {
appAPI.db.set(function(){
alert("db set was completed!");
}, "db_key", "db_value", appAPI.time.hoursFromNow(1));
appAPI.db.get(function(value){
alert("db_key value is " + value);
}, "db_key")
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment