'Perform API action and return response object.'

def _perform_action(self, path, action, method='POST', params=None, data=None):

    if params:
        params = params.copy()
    else:
        params = {}
    params['do'] = action
    response = self.connection.request(action=path, method=method, params=params, data=data)
    return response
