A simple YO SDK for iOS
Drag YO folder into your project in Xcode. Include #import "YO.h"
The following example will send a YO from YIQIN2.
If you want to recieve a YO from the example, add YIQIN2 as a friend in the app.
In AppDelegate, include the following code in didFinishLaunchingWithOptions:
// Put your APIKey
NSString *APIKey = @"20af1dd2-93af-869f-446c-0675f8694095";
[YO startWithAPIKey:APIKey];
In your code: (Objective-C)
// Send A Yo To All Subscribers
[YO sendYO];
// Yo Individual Usernames
[YO sendYOToIndividualUser:@"YQ123456"];
// Yo Individual Usernames with Location
[YO sendYOToIndividualUser:@"YQ123456" withLocation: @"1, 1"];
// Count Total Subscribers
[YO countTotalSubscribers];
(Swift)
// Yo Individual Usernames
YO.sendYOToIndividualUser("YQ123456")
- Fork it.
- Create your feature branch (git checkout -b new-feature).
- Commit your changes (git commit -am 'Added new-feature').
- Push to the branch (git push origin new-feature).
- Create new Pull Request.