'Perform multiple calls in order to have a full list of elements when
the API responses are paginated.
:param url: API endpoint
:type url: ``str``
:param obj: Result object key
:type obj: ``str``
:return: ``list`` of API response objects
:rtype: ``list``'

def _paginated_request(self, url, obj):

    params = {}
    data = self.connection.request(url)
    try:
        query = urlparse.urlparse(data.object['links']['pages']['last'])
        pages = parse_qs(query[4])['page'][0]
        values = data.object[obj]
        for page in range(2, (int(pages) + 1)):
            params.update({'page': page})
            new_data = self.connection.request(url, params=params)
            more_values = new_data.object[obj]
            for value in more_values:
                values.append(value)
        data = values
    except KeyError:
        data = data.object[obj]
    return data
