def set_message_center(overrides=None): defaults = { 'goformId': 'SET_MESSAGE_CENTER', 'save_time': 'largest', 'status_save': '0', 'save_location': 'native', 'MessageCenter': '', } data = _update_params(defaults, overrides) return post(data)
def if_upgrade(overrides=None): """ select_op : "check", "1" (download), "2" (cancel) """ defaults = { 'goformId': 'IF_UPGRADE', 'select_op': '', } data = _update_params(defaults, overrides) return post(data)
def set_dial_ip_type(overrides=None): """ ip_type: "IP", "IPV6", "IPV4V6" """ defaults = { 'goformId': 'SET_DIAL_IP_TYPE', 'ip_type': '', } data = _update_params(defaults, overrides) return post(data)
def set_bearer_preference(overrides=None): """ BearerPreference: "Only_GSM", "Only_WCDMA" "WCDMA_preferred", "Only_LTE", "NETWORK_auto", """ defaults = { 'goformId': 'SET_BEARER_PREFERENCE', 'BearerPreference': '', } data = _update_params(defaults, overrides) return post(data)
def set_network(overrides=None): """ NetworkNumber: a valid mccmnc Rat: "0" (2G), "2" (3G), "7" (4G) """ defaults = { 'goformId': 'SET_NETWORK', 'NetworkNumber': '', 'Rat': '', } data = _update_params(defaults, overrides) return post(data)
def set_connection_mode(overrides=None): """ ConnectionMode: "auto_dial", "manual_dial", "demand_dial" roam_setting_option: "on", "off" """ defaults = { 'goformId': 'SET_CONNECTION_MODE', 'ConnectionMode': '', 'roam_setting_option': '', } data = _update_params(defaults, overrides) return post(data)
def delete_sms(overrides=None): """ Delete Sms Args overrides (dict): msg_id: ';' (empty), 'X;' (one) 'X;Y;Z;' (many) """ defaults = { 'goformId': 'DELETE_SMS', 'msg_id': '', } data = _update_params(defaults, overrides) return post(data)
def set_account_type(overrides=None): """ Set acount type Args overrides (dict): AccountType: 'Contract', 'Prepaid', 'Custom' """ defaults = { 'goformId': 'SET_ACCOUNT_TYPE', 'AccountType': '', } data = _update_params(defaults, overrides) return post(data)
def send_sms(overrides=None): """ Send sms Args overrides (dict): Number: ';' (empty) 'X;' (singular) 'X;Y;Z;' (multiple) sms_time: MessageBody: '' (empty) ID: -1 (new), n (replace n) encode_type: GSM7_default, GSM7_turkey, UNICODE """ defaults = { 'goformId': 'SEND_SMS', 'Number': '', 'sms_time': '', 'MessageBody': '', 'ID': '-1', 'encode_type': 'GSM7_default', } data = _update_params(defaults, overrides) return post(data)
def save_sms(overrides=None): """ Save sms Args overrides (dict): SMSNumber: ';' (empty) 'X;' (singular) 'X;Y;Z;' (multiple) sms_time: SMSMessage: '' (empty) Index: -1 (new), n (replace n) encode_type: GSM7_default, GSM7_turkey, UNICODE """ defaults = { 'goformId': 'SAVE_SMS', 'location': '1', 'tags': '4', 'SMSNumber': '', 'SMSMessage': '', 'Index': '-1', 'encode_type': 'GSM7_default', 'sms_time': '', } data = _update_params(defaults, overrides) return post(data)
def scan_network(overrides=None): defaults = { 'goformId': 'SCAN_NETWORK', } data = _update_params(defaults, overrides) return post(data)
def restore_factory_settings(overrides=None): defaults = { 'goformId': 'RESTORE_FACTORY_SETTINGS', } data = _update_params(defaults, overrides) return post(data)
def reboot_device(overrides=None): defaults = { 'goformId': 'REBOOT_DEVICE', } data = _update_params(defaults, overrides) return post(data)
def connect_network(overrides=None): defaults = { 'goformId': 'CONNECT_NETWORK', } data = _update_params(defaults, overrides) return post(data)