Skip to content

Instantly share code, notes, and snippets.

Created Aug 1, 2013
What would you like to do?
Parse js
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
Parse.initialize("CqvQbKeavBips6SMg1w2HVl1dPFwdq3KOTYOhpwg", "Xu3fHRW5GWhVPgFFvlMiK0ACFSkaSmmzn8I87XqM"); //application key
var TestObject = Parse.Object.extend("TestObject");
//adding new element to the db
var testObject = new TestObject();
foo: "bar"
success: function(object) { },
error: function(model, error) {}
//fetching data
var query = new Parse.Query(TestObject);
query.get("xWMyZ4YEGZ", { //object id
success: function(gameScore) {},
error: function(object, error) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment