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

StackMob: Baas meets PaaS

James Hughes
September 13, 2012

StackMob: Baas meets PaaS

An introduction to StackMob.

James Hughes

September 13, 2012
Tweet

More Decks by James Hughes

Other Decks in Technology

Transcript

  1. n l

  2. 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
  3. [[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 } }];
  4. 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 } });
  5. 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 } });
  6. 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) } }