This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Catalyze setApiKey:@"<type> <identifier> <id>" applicationId:@"<id>"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Catalyze setApiKey:@"ios com.company.my.HealthTracker 8174bac4-1234-5678-9012-1234567890ab" | |
applicationId:@"98abcd64-0987-6543-21fe-abcdef192837"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
platform :ios, '7.0' | |
pod 'catalyze-ios-sdk', '~> 2.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Catalyze.getInstance(this).signUp(userName, password, firstName, lastName, userName, | |
inviteCode, new CatalyzeListener<CatalyzeUser>() { | |
@Override | |
public void onError(CatalyzeException response) { | |
// ... | |
} | |
@Override | |
public void onSuccess(CatalyzeUser response) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CatalyzeUser signUpWithUsernameInBackground:myUsername email:myEmail name:myName | |
password:myPassword inviteCode:myInviteCode success:^(CatalyzeUser *result) { | |
// ... | |
} failure:^(NSDictionary *result, int status, NSError *error) { | |
// ... | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CatalyzeObject *entry = [CatalyzeObject objectWithClassName:@"surveys"]; | |
[entry setObject:[NSNumber numberWithInt:score] forKey:@"score"]; | |
[entry setObject:_lblQuestion1.text forKey:@"question_1"]; | |
[entry setObject:[NSNumber numberWithInteger:_segmentedQuestion1.selectedSegmentIndex] forKey:@"question_1_answer"]; | |
[entry setObject:_lblQuestion2.text forKey:@"question_2"]; | |
[entry setObject:[NSNumber numberWithInteger:_segmentedQuestion2.selectedSegmentIndex] forKey:@"question_2_answer"]; | |
[entry setObject:_lblQuestion3.text forKey:@"question_3"]; | |
[entry setObject:[NSNumber numberWithInteger:_segmentedQuestion3.selectedSegmentIndex] forKey:@"question_3_answer"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"conversations", | |
"schema":{ | |
"sender":"string", | |
"recipient":"string", | |
"sender_id":"string", | |
"recipient_id":"string" | |
}, | |
"phi":true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"contacts", | |
"schema":{ | |
"user_username":"string", | |
"user_usersId":"string" | |
}, | |
"phi":false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"messages", | |
"schema":{ | |
"msgContent":"string", | |
"toPhone":"string", | |
"fromPhone":"string", | |
"timestamp":"string", | |
"isPhi":"boolean", | |
"fileId":"string", | |
"conversationsId":"string" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class Environment { | |
var environmentId: String | |
var data: Dictionary<String, AnyObject> | |
var deployed: Bool | |
var dirty: Bool | |
init(dict: Dictionary<String, AnyObject>) { | |
self.environmentId = (dict["environmentId"] as AnyObject?) as String |