Monday, 15 April 2013

Instagram API location media recent JSON -



Instagram API location media recent JSON -

i'm trying recent media items instagram's api. search populated place new york , 1-2 objects per location/locationid/media/recent call. pagination dictionary seems empty

nsstring *getlocationmediastring = [[nsstring alloc]initwithformat:@"locations/%@/media/recent?client_id=%@", self.locationidobjectarray[i], client_id]; nslog(@"getlocationmediastring %@", getlocationmediastring); [[lpauthclient sharedclient]get:getlocationmediastring parameters:nil success:^(nsurlsessiondatatask *task, id responseobject) { { nshttpurlresponse *httpresponse = (nshttpurlresponse *)task.response; if (httpresponse.statuscode == 200) { dispatch_async(dispatch_get_main_queue(), ^{ _locationmediaarray = responseobject[@"data"]; if (!_locationmediajsonarray) { _locationmediajsonarray = [nsmutablearray array]; } (nsdictionary *dictionary in _locationmediaarray) { [_locationmediajsonarray addobject:dictionary]; } nslog(@"json property in scope %@", _locationmediajsonarray); }); } } } failure:^(nsurlsessiondatatask *task, nserror *error) { nslog(@"failure %@", error); }];

}

is there way more 1-2 objects back? perhaps parameter don't know of? if there more objects, assuming pagination have values.

json api instagram

No comments:

Post a Comment