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

StackMob: Baas meets PaaS

0b2600a627d0af06ca6bbf9abe4067af?s=47 James Hughes
September 13, 2012

StackMob: Baas meets PaaS

An introduction to StackMob.

0b2600a627d0af06ca6bbf9abe4067af?s=128

James Hughes

September 13, 2012
Tweet

More Decks by James Hughes

Other Decks in Technology

Transcript

  1. StackMob BaaS meets PaaS

  2. l PaaS IaaS SaaS

  3. HTML5 n

  4. n l

  5. Data Storage User Management Push Notifications Social Integration Geo Awareness

  6. yorAPI StackMob Spire Sencha.io Scotty QuickBlox Parse Open Mobster mobDB

    Kinvey Kii iKnode Flurry AppCloud CloudyRec CloudMine Buddy Applicasa Appcelerator API-o-mat Apigee UserGrid
  7. StackMob

  8. None
  9. [[StackMob stackmob] post:@"chatmessage" withArguments:args andCallback:^(BOOL success, id result) { if

    (success) { NSDictionary *resultObj = (NSDictionary *)result; NSString *itemId = [resultObj objectForKey:@"chatmessage_id"]; } else { // handle object creation failure } }];
  10. Map<String, String> args = new HashMap<String, String>(); args.put("message", "hello world!");

    args.put("author", "johndoe"); StackMobCommon.getStackMobInstance().post("chatmessage", args, new StackMobCallback() { @Override public void success(String responseBody) { //POST succeeded } @Override public void failure(StackMobException e) { //POST failed } });
  11. var ChatMessage = StackMob.Model.extend({ schemaName: 'chatmessage' }); var message =

    new ChatMessage({ message: 'hello world!', author: 'johndoe' }); message.create({ success: function(model) { // handle success }, error: function(model, response) { // handle failure } });
  12. None
  13. None
  14. class HelloWorldExample extends CustomCodeMethod { override def getMethodName: String =

    { "hello_world" } override def getParams: java.util.List[String] = { Arrays.asList() } override def execute( request: ProcessedAPIRequest, serviceProvider: SDKServiceProvider): ResponseToProcess = { val params = Map("msg" -> "hello world!").asJava new ResponseToProcess(HTTP_OK, params) } }
  15. StackMob.customcode('hello_world', {}, { success: function(jsonResult) { //jsonResult = { "msg":

    "Hello, world!" } }, error: function(failure) { //doh! } });
  16. None
  17. Schemas Relationships Environments Permissions

  18. A Guy Did Tour

  19. StackMob BaaS meets PaaS