|
NSString * | applicationKey |
|
NSString * | secretCode |
|
- (NSArray *) getDomainState: |
|
(NSString *) |
state |
from: |
|
(NSDate *) |
from |
to: |
|
(NSDate *) |
to |
success: |
|
(void(^)(NSArray *states)) |
success |
failure: |
|
(void(^)(NSError *error)) |
failure |
|
|
| |
Get state information for a domain
- Parameters
-
state | the state name. refer to the Coaching engine backend specification for available state |
from | unix epoch time start of the data |
to | unix epoch time end of the data |
- Returns
- NSArray of NSDictionary: {"date": [NSDATE], @"value": [id]} the value can be anything of parsed JSON
- (void) registerUserWithEmail: |
|
(NSString*) |
email |
andPassword: |
|
(NSString*) |
password |
andSecretCode: |
|
(NSString*) |
secretCode |
andUserInfo: |
|
(NSDictionary*) |
userInfo |
success: |
|
(void(^)()) |
success |
failure: |
|
(void(^)(NSError* error)) |
failure |
|
|
| |
Registers a new user with email and password and connects the user to a specific organization for a specific application based on the secret code that is provided. Success and failure functions can be specified.
- Parameters
-
email | Email to register |
password | plain text password |
success | success handler. Called on the main queue |
failure | failure handler. Might contain extra info on the error. Called on the main queue |
- Warning
- Function has changed so that it requires a secret code now and cannot be used anymore without specifying a secret code
The documentation for this class was generated from the following files:
- ios-sdk/Cortex/coaching_engine/CoachingEngineAPI.h
- ios-sdk/Cortex/coaching_engine/CoachingEngineAPI.m