REST API

The communication between server and client is managed with rest http. When you want invoke a specific method you can use : see also In Your Application Delegate. Demo code [code lang="Objective-C"] My_Bees_Core *my_bees = [[My_Bees_Core alloc] init]; NSString *method=@"/getMyprofile"; [my_bees send:method success:^(id responseObject){ NSLog(@"response: %@", responseObject); } failure:^(NSError * error){ NSLog(@"error: %@", error); }]; [...]

Import framework in Xcode.

Import our framework is very simple, drag and drop file.framework in your project and on General tab in configuration you must drag and drop under Embedded Binaries

In Your Application Delegate.

In your AppDelegate.m you connect yours app with My_Bees_Core, with this operation you can access to services in MicroBees platform. [code lang="Objective-C" style="line-height:10px"] #import <MyBeesKit/My_Bees_Core.h> - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { My_Bees_Core *my_bees = [[My_Bees_Core alloc] init]; [my_bees connect: ^(BOOL finished){ if(finished){ } } OnFailed:^(NSError * error){ }]; return YES; } [/code] When the connection [...]

Configure Xcode Project

The first step is to configure .plist file in your project. [code lang="HTML/XML"] <key>CFBundleURLTypes</key>; <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>mbCLIENT_ID&lt;/string> </array> </dict> </array> <key>ClientID</key> <string>CLIENT_ID</string> [/code] You must replace CLIENT_ID with ClientID in your app on dashboard.

Getting started

These are the simple step you have to do before start coding your IOS APP: download the SDK from here framework; Create your microBees Application from Developer Dashboard; Get your App ClientID (the API_KEY); Add our SDK (and frameworks) to your Xcode Project; Configure your project in accordance with the following specifications. This SDK can [...]