Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Parse API Presentation

challengepost
September 20, 2013
2.7k

Parse API Presentation

Parse API Presentation at MHacks 2013

challengepost

September 20, 2013
Tweet

Transcript

  1. Database REST API Z Z Z Server + + +

    users + security Caching Networking + + The fun stuff! Saturday, September 21, 13
  2. Database REST API Z Z Z Server + + +

    users + security Caching Networking + + The fun stuff! no no no no no yes! Saturday, September 21, 13
  3. Android OS X WP8 Win 8 .NET Cloud Code REST

    JavaScript Saturday, September 21, 13
  4. Sign up a user PFUser *user = [PFUser user]; [user

    setUsername:@"Apps"]; [user setPassword:@"r0ck"]; [user signUpInBackground:...]; Login a user [PFUser logInWithUsernameInBackground:@"Apps" password:@"r0ck" block:...]; [PFUser currentUser]; Saturday, September 21, 13
  5. Facebook Users [PFFacebookUtils logInWithPermissions:permissions block:...]; ...or Twitter Users [PFTwitterUtils logInWithBlock:...];

    [PFFacebookUtils linkUser:[PFUser currentUser] permissions:permissions block:...]; [PFTwitterUtils linkUser:[PFUser currentUser] block:...]; Saturday, September 21, 13
  6. PFObject *comment = [PFObject objectWithClassName:@"Comment"]; [comment setObject:@"Great pic!" forKey:@"text"]; [comment

    saveInBackground]; [comment setObject:[PFUser currentUser] forKey:@"user"]; Saturday, September 21, 13
  7. PFQuery *query = [PFQuery queryForClass:@"Picture"]; [query whereKey:@"user" equalTo:[PFUser currentUser]]; [query

    whereKey:@"createdAt" greaterThan:dateOneWeekAgo]; [query findObjectsInBackgroundWithBlock:...]; Saturday, September 21, 13
  8. PFQuery *query = [PFQuery queryForClass:@"Picture"]; [query whereKey:@"user" equalTo:[PFUser currentUser]]; [query

    whereKey:@"createdAt" greaterThan:dateOneWeekAgo]; [query findObjectsInBackgroundWithBlock: ^(NSArray *objects, NSError *error) { if (!error) { // The find succeeded. NSLog(@"Successfully retrieved objects!”); } else { // Log details of the failure NSLog(@"Error: %@ %@", error, [error userInfo]); } } ]; Saturday, September 21, 13
  9. 01011010001010100101010101010101011110010100110110110101011001001000 01010101110101101100001001001010101011100110001010101010001011000110 10011001010011110001110010101110001110001010101011010001010100101010 01011110010100110110110101011001001000100110101010101110101101100001 10101011100110001010101010001011000110011100010011001010011110001110 10001110001010101011010001010100101010101010101011110010100110110110 01001000100110101010101110101101100001001001010101011100110001010101 11000110011100010011001010011110001110010101110001110001010101011010 00101010101010101011110010100110110110101011001001000100110101010101 01100001001001010101011100110001010101010001011000110011100010011001

    10001110010101110001110001010101011010001010100101010101010101011110 10110110101011001001000100110101010101110101101100001001001010101011 01010101010001011000110011100010011001010011110001110010101110001110 01011010001010100101010101010101011110010100110110110101011001001000 01010101110101101100001001001010101011100101010111010110110000100100 01110011000101010101000101100011001110001001100101001111000111001010 11000101010101101000101010010101010101010101111001010011011011010101 It’s code in the Saturday, September 21, 13