def generate_req(self): """ Generates request object based on parse options results. """ method = "switchvox.status.telephonyCards.getList" parameters = None return switchvox_common.request_form(method=method, parameters=parameters)
def generate_req(self): """ Generates request object based on parse options results. """ method = "switchvox.call" parameters = {"ignore_user_call_rules": "1", "ignore_user_api_settings": "1", "timeout": self.timeout, "dial_as_account_id": self.dial_as_account_id, "dial_first": self.dial_first, "dial_second": self.dial_second} return switchvox_common.request_form(method=method, parameters=parameters)