Created
February 21, 2014 00:03
-
-
Save zaneclaes/9126093 to your computer and use it in GitHub Desktop.
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
NSNumber *limitParam = (limit) ? @(limit) : @50; | |
NSNumber *offsetParam = (offset) ? @(offset) : @0; | |
NSDictionary *params = @{@"_format": @"v1_legacy", | |
(host ? @"host_id" : @"guest_id") : [BBUser activeUser].userId ?: @(0), | |
@"offset" : offsetParam, | |
@"items_per_page" : limitParam, | |
@"include_pending" : includePending ? @"true" : @"false", | |
@"include_checkpoint" : includeCheckpoint ? @"true" : @"false" | |
}; | |
[[BBAPI V2] getMany:@"/reservations" withParams:params onSuccess:successBlock onFailure:failureBlock]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment