daily_med.request_paginator module

class daily_med.request_paginator.RequestPaginator(endpoint, params=None, page_size=25, page_start=1, output_type=<type 'dict'>)[source]

Bases: object

RequestPaginator provides an iterator based upon an initial request.

PAGE_CURRENT = 'current_page'
PAGE_DATA = 'data'
PAGE_META = 'metadata'
PAGE_NUM = 'page'
PAGE_SIZE = 'pagesize'
PAGE_TOTAL = 'total_pages'
SSL_VERIFY = True
call(params)[source]

It calls the remote endpoint and returns the JSON decoded result.