code: def get_collection(self, path):
          
          while True:
              items = self.get(path)
              req = self.req
              for item in items:
                  yield item
              if req.links and req.links['next'] and\
                      req.links['next']['rel'] == 'next':
                  path = req.links['next']['url']
              else:
                  break
docs: To get pagewise data.