Last active
February 15, 2016 11:37
-
-
Save jamesnesfield/54f89cf71492e2956add to your computer and use it in GitHub Desktop.
iOS Getting Started
This file contains hidden or 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
[[ChirpSDK sdk] setOfflineOnly:YES]; | |
[[ChirpSDK sdk] startListening:^(Chirp *chirp, NSError *error) | |
{ | |
NSLog(@"Heard chirp: %@", chirp.shortcode); | |
}]; |
This file contains hidden or 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
[[ChirpSDK sdk] chirpDictionary:@{ | |
@"key" : @"value", | |
@"more" : @"data", | |
@"array" : @[ 1, 2, 3, ] | |
} withCompletion:^(Chirp *chirp, NSError *error) | |
{ | |
if (!error) | |
NSLog(@"Chirped OK"); | |
}]; |
This file contains hidden or 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
[[ChirpSDK sdk] chirpShortcode:@"parrotbill" withCompletion:^(Chirp *chirp, NSError *error) | |
{ | |
if (!error) | |
NSLog(@"Chirped OK."); | |
}]; |
This file contains hidden or 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
[[ChirpSDK sdk] setAppKey:YOUR_APP_KEY | |
andSecret:YOUR_APP_SECRET]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment