{"action":"created","issue":{"url":"https://api.github.com/repos/ibm-messaging/iot-python/issues/17","repository_url":"https://api.github.com/repos/ibm-messaging/iot-python","labels_url":"https://api.github.com/repos/ibm-messaging/iot-python/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/ibm-messaging/iot-python/issues/17/comments","events_url":"https://api.github.com/repos/ibm-messaging/iot-python/issues/17/events","html_url":"https://github.com/ibm-messaging/iot-python/issues/17","id":131572725,"number":17,"title":"Python Cli get device list only return 25 devices, possible pagination?","user":{"login":"xianlin","id":1726373,"avatar_url":"https://avatars.githubusercontent.com/u/1726373?v=3","gravatar_id":"","url":"https://api.github.com/users/xianlin","html_url":"https://github.com/xianlin","followers_url":"https://api.github.com/users/xianlin/followers","following_url":"https://api.github.com/users/xianlin/following{/other_user}","gists_url":"https://api.github.com/users/xianlin/gists{/gist_id}","starred_url":"https://api.github.com/users/xianlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xianlin/subscriptions","organizations_url":"https://api.github.com/users/xianlin/orgs","repos_url":"https://api.github.com/users/xianlin/repos","events_url":"https://api.github.com/users/xianlin/events{/privacy}","received_events_url":"https://api.github.com/users/xianlin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"slaupster","id":9283885,"avatar_url":"https://avatars.githubusercontent.com/u/9283885?v=3","gravatar_id":"","url":"https://api.github.com/users/slaupster","html_url":"https://github.com/slaupster","followers_url":"https://api.github.com/users/slaupster/followers","following_url":"https://api.github.com/users/slaupster/following{/other_user}","gists_url":"https://api.github.com/users/slaupster/gists{/gist_id}","starred_url":"https://api.github.com/users/slaupster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaupster/subscriptions","organizations_url":"https://api.github.com/users/slaupster/orgs","repos_url":"https://api.github.com/users/slaupster/repos","events_url":"https://api.github.com/users/slaupster/events{/privacy}","received_events_url":"https://api.github.com/users/slaupster/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-02-05T07:04:39Z","updated_at":"2016-02-05T15:48:20Z","closed_at":"2016-02-05T13:06:12Z","body":"Hi when I run the below script to get a list of all devices in IoT Foundation, I only can get up to 25 devices\r\n\r\n```\r\n[me@localhost ~]$ python cli.py -c app-production.cfg device list\r\nd:hld45t:test:001                       Registered 14 days ago by ibmer@uk.ibm.com\r\nd:hld45t:generic:intel-galileo-1        Registered 208 days ago by ibmer@uk.ibm.com\r\nd:hld45t:generic:mbed-k64f-1            Registered 209 days ago by a-hld45t-norczl3hzx\r\nd:hld45t:generic:mbed-lpc1768-1         Registered 209 days ago by a-hld45t-norczl3hzx\r\nd:hld45t:generic:psutil                 Registered 257 days ago by ibmer@uk.ibm.com\r\nd:hld45t:generic:raspberry-pi-1         Registered 210 days ago by a-hld45t-norczl3hzx\r\nd:hld45t:generic:sigar                  Registered 166 days ago by ibmer@uk.ibm.com\r\nd:hld45t:generic:ti-bbst-1              Registered 210 days ago by a-hld45t-norczl3hzx\r\nd:hld45t:generic2:intel-galileo-2       Registered 153 days ago by ibmer2@in.ibm.com\r\nd:hld45t:generic2:mbed-k64f-2           Registered 153 days ago by ibmer2@in.ibm.com\r\nd:hld45t:generic2:mbed-lpc1768-2        Registered 153 days ago by ibmer2@in.ibm.com\r\nd:hld45t:generic2:raspberry-pi-2        Registered 153 days ago by ibmer2@in.ibm.com\r\nd:hld45t:generic2:ti-cc3200-1           Registered 153 days ago by ibmer2@in.ibm.com\r\nd:hld45t:sdfgh:dfghgfds                 Registered 12 days ago by ibmer@uk.ibm.com\r\n```\r\n\r\nI suspect this is to due to API pagination design. How to work around this pagination and get full device list? \r\n\r\nOr this python client is useless without improving for now."},"comment":{"url":"https://api.github.com/repos/ibm-messaging/iot-python/issues/comments/180410832","html_url":"https://github.com/ibm-messaging/iot-python/issues/17#issuecomment-180410832","issue_url":"https://api.github.com/repos/ibm-messaging/iot-python/issues/17","id":180410832,"user":{"login":"xianlin","id":1726373,"avatar_url":"https://avatars.githubusercontent.com/u/1726373?v=3","gravatar_id":"","url":"https://api.github.com/users/xianlin","html_url":"https://github.com/xianlin","followers_url":"https://api.github.com/users/xianlin/followers","following_url":"https://api.github.com/users/xianlin/following{/other_user}","gists_url":"https://api.github.com/users/xianlin/gists{/gist_id}","starred_url":"https://api.github.com/users/xianlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xianlin/subscriptions","organizations_url":"https://api.github.com/users/xianlin/orgs","repos_url":"https://api.github.com/users/xianlin/repos","events_url":"https://api.github.com/users/xianlin/events{/privacy}","received_events_url":"https://api.github.com/users/xianlin/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T15:48:20Z","updated_at":"2016-02-05T15:48:20Z","body":"Yes, it works. I have 103 devices and I ran \r\n```\r\npython cli.py -c app-production.cfg device list 200\r\n```\r\n"}}