/getBeeActuators

Method description End point/getBeeActuators DescriptionReturns the list of all the actuators of a BEE Request methodPOST Bearer tokenRequired Request RequestParam Field nameDescriptionType idBEE identifierLong RequestBodyNone Response A JSONArray representation of the actuators associated with a BEE Example [{ "id":44, "label": "Power switch", "prototypeID": 2, "prototypeName": "Prototype name", "gate_serial": "serial-number-of-the-gatebee", "bee_serial": "serial-number-of-the-bee", "value": 1, "deviceID": 2, [...]

/getActuatorDetails

Method description End point /getActuatorDetails Description Returns detailed informations about a specific Actuator Request method POST Bearer token Required Request RequestParam Field name Description Type id Actuator identifier Long RequestBody None Response A JSON representation of the selected Actuator Example { "id":21, "label": "Lamp switch", "prototypeID": 25, "prototypeName": "Power switch", "value": 0, "deviceID", 69, "connection_status": [...]

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. #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; } When the connection is established the code [...]

Configure Xcode Project

The first step is to configure .plist file in your project. <key>CFBundleURLTypes</key>; <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>mbCLIENT_ID&lt;/string> </array> </dict> </array> <key>ClientID</key> <string>CLIENT_ID</string> 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 [...]

/getMyActuators

Method description End point/getMyActuators DescriptionReturns the list of all the actuators of the user Request methodPOST Bearer tokenRequired Request RequestParamNone RequestBodyNone Response A JSONArray representation of the user's actuators Example [{ "id":44, "label": "Power switch", "prototypeID": 2, "prototypeName": "Prototype name", "gate_serial": "serial-number-of-the-gatebee", "bee_serial": "serial-number-of-the-bee", "value": 1, "deviceID": 2, "beeID": 7, "connection_status": true/false }, { ... [...]