{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/213","labels_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/213/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/213/events","html_url":"https://github.com/aws/aws-sdk-ios/issues/213","id":92200937,"number":213,"title":"Retrieve list of more than 1,000 S3 objects","user":{"login":"dougboberg","id":4432153,"avatar_url":"https://avatars.githubusercontent.com/u/4432153?v=3","gravatar_id":"","url":"https://api.github.com/users/dougboberg","html_url":"https://github.com/dougboberg","followers_url":"https://api.github.com/users/dougboberg/followers","following_url":"https://api.github.com/users/dougboberg/following{/other_user}","gists_url":"https://api.github.com/users/dougboberg/gists{/gist_id}","starred_url":"https://api.github.com/users/dougboberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougboberg/subscriptions","organizations_url":"https://api.github.com/users/dougboberg/orgs","repos_url":"https://api.github.com/users/dougboberg/repos","events_url":"https://api.github.com/users/dougboberg/events{/privacy}","received_events_url":"https://api.github.com/users/dougboberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-ios/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-30T21:13:24Z","updated_at":"2015-07-01T18:03:10Z","closed_at":"2015-07-01T18:03:10Z","body":"When calling\r\n``` \r\n[[[AmazonClientManager s3] listObjects: req] continueWithSuccessBlock:^id(BFTask *task) {\r\n  AWSS3ListObjectsOutput *listoutput = task.result;\r\n}];\r\n```\r\n\r\nand the `[listoutput.isTruncated boolValue]` returns `true` the `listoutput.nextMarker` is nil.\r\n\r\nThis seems to be similar to the behaviour someone reported for the go SDK:  https://github.com/aws/aws-sdk-go/issues/152\r\n\r\nIn iOS Obj-C, what is the correct way to retrieve more than 1,000 S3 items if nextMarker is not available?  Does the iOS SDK have pagination (I cannot find reference to it)?  I don't need to download the objects, just simply list them.\r\n\r\nFurther, can an example be added to the iOS SDK that shows the correct way to recursively setup BFTask (or AWSTask) to retrieve all S3 entries?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/comments/117771225","html_url":"https://github.com/aws/aws-sdk-ios/issues/213#issuecomment-117771225","issue_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/213","id":117771225,"user":{"login":"dougboberg","id":4432153,"avatar_url":"https://avatars.githubusercontent.com/u/4432153?v=3","gravatar_id":"","url":"https://api.github.com/users/dougboberg","html_url":"https://github.com/dougboberg","followers_url":"https://api.github.com/users/dougboberg/followers","following_url":"https://api.github.com/users/dougboberg/following{/other_user}","gists_url":"https://api.github.com/users/dougboberg/gists{/gist_id}","starred_url":"https://api.github.com/users/dougboberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougboberg/subscriptions","organizations_url":"https://api.github.com/users/dougboberg/orgs","repos_url":"https://api.github.com/users/dougboberg/repos","events_url":"https://api.github.com/users/dougboberg/events{/privacy}","received_events_url":"https://api.github.com/users/dougboberg/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T18:03:10Z","updated_at":"2015-07-01T18:03:10Z","body":"Yup, I understood that I should use the \"In Sequence\" section.\r\n\r\nI don't see a way to adapt the `for (int32_t i = 0; i < 100; i++)` shown in the \"In Sequence\" section to a do-while loop of `nextMarker` and `isTruncated` params for the `listObjects` call.\r\n\r\nClosing issue without resolving how to retrieve the entire list of objects in a single returned array. "}}