Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Construct a MomentQuery object
- // Pagers can be set in the constructor
- MomentQuery *query = [[MomentQuery alloc] initWithLimit:5 offset:10];
- // Options for filtering include:
- // by Zone ID
- query.zoneIDs = @[zone1.identifier, zone2.identifier];
- // by Tag ID
- query.tagIDs = @[tag1.identifier, tag2.identifier];
- // by Moment ID
- query.momentInstanceIDs = @[moment1.identifier, moment2.identifier];
- // Each uses the same API construct:
- [APIManager getMoments:query completion:^(NSArray *moments, Pager *pager, NSError *error) {
- if (error) {
- // handle error
- } else {
- // handle success
- }
- }];
- // NOTE: Other APIs are available including convenience requests and searching.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement