pylibsimba.pages.PagedResponse

class pylibsimba.pages.PagedResponse(data, url, simba: Simbachain)

Wrapper for paged responses

__init__(data, url, simba: Simbachain)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(data, url, simba)

Initialize self.

count()

returns

The number of results available

current_page()

returns

The current page number

data()

Returns the actual data

next()

Grab the next page

next_page()

returns

The next page number

previous()

Grab the previous page

previous_page()

returns

The previous page number

count() → int
Returns

The number of results available

current_page()
Returns

The current page number

data() → dict

Returns the actual data

Returns

Dict of all the results

next() → Optional[pylibsimba.pages.PagedResponse]

Grab the next page

Returns

PagedResponse for the next page, or None if not available

next_page()
Returns

The next page number

previous() → Optional[pylibsimba.pages.PagedResponse]

Grab the previous page

Returns

PagedResponse for the next page, or None if not available

previous_page()
Returns

The previous page number