接口描述

获取APN信息

请求方式

GET

接口地址

/goform/goform_get_cmd_process

请求字段说明

参数名 类型 举例 描述 备注
isTest bool false 是否是测试模式 -
cmd string APN_config0,APN_config1,APN_config2,APN_config3,APN_config4,APN_config5,APN_config6,APN_config7,APN_config8,APN_config9,APN_config10,APN_config11,APN_config12,APN_config13,APN_config14,APN_config15,APN_config16,APN_config17,APN_config18,APN_config19,ipv6_APN_config0,ipv6_APN_config1,ipv6_APN_config2,ipv6_APN_config3,ipv6_APN_config4,ipv6_APN_config5,ipv6_APN_config6,ipv6_APN_config7,ipv6_APN_config8,ipv6_APN_config9,ipv6_APN_config10,ipv6_APN_config11,ipv6_APN_config12,ipv6_APN_config13,ipv6_APN_config14,ipv6_APN_config15,ipv6_APN_config16,ipv6_APN_config17,ipv6_APN_config18,ipv6_APN_config19,m_profile_name,profile_name,wan_dial,pdp_type,pdp_select,index,Current_index,apn_auto_config,ipv6_apn_auto_config,apn_mode,wan_apn,ppp_auth_mode,ppp_username,ppp_passwd,ipv6_wan_apn,ipv6_pdp_type,ipv6_ppp_auth_mode,ipv6_ppp_username,ipv6_ppp_passwd,apn_num_preset 指令名称 固定值
multi_data integer 1 是否请求多行数据 固定值

正确返回

{
    "APN_config0": "Default($)Default($)manual($)($)none($)($)($)IP($)auto($)($)auto($)($)($)",
    "APN_config1": "",
    "APN_config2": "",
    "APN_config3": "",
    "APN_config4": "",
    "APN_config5": "",
    "APN_config6": "",
    "APN_config7": "",
    "APN_config8": "",
    "APN_config9": "",
    "APN_config10": "",
    "APN_config11": "",
    "APN_config12": "",
    "APN_config13": "",
    "APN_config14": "",
    "APN_config15": "",
    "APN_config16": "",
    "APN_config17": "",
    "APN_config18": "",
    "APN_config19": "",
    "ipv6_APN_config0": "",
    "ipv6_APN_config1": "",
    "ipv6_APN_config2": "",
    "ipv6_APN_config3": "",
    "ipv6_APN_config4": "",
    "ipv6_APN_config5": "",
    "ipv6_APN_config6": "",
    "ipv6_APN_config7": "",
    "ipv6_APN_config8": "",
    "ipv6_APN_config9": "",
    "ipv6_APN_config10": "",
    "ipv6_APN_config11": "",
    "ipv6_APN_config12": "",
    "ipv6_APN_config13": "",
    "ipv6_APN_config14": "",
    "ipv6_APN_config15": "",
    "ipv6_APN_config16": "",
    "ipv6_APN_config17": "",
    "ipv6_APN_config18": "",
    "ipv6_APN_config19": "",
    "m_profile_name": "CMCC",
    "profile_name": "",
    "wan_dial": "*99#",
    "pdp_type": "IP",
    "pdp_select": "auto",
    "index": "",
    "Current_index": "",
    "apn_auto_config": "CMCC($)cmnet($)auto($)*99#($)PAP($)($)($)IP($)auto($)($)auto($)($)",
    "ipv6_apn_auto_config": "",
    "apn_mode": "auto",
    "wan_apn": "cmnet",
    "ppp_auth_mode": "PAP",
    "ppp_username": "",
    "ppp_passwd": "",
    "ipv6_wan_apn": "",
    "ipv6_pdp_type": "IP",
    "ipv6_ppp_auth_mode": "",
    "ipv6_ppp_username": "",
    "ipv6_ppp_passwd": "",
    "apn_num_preset": ""
}

数据格式化

{
    APNs : result.APN_config0 + "||" + result.APN_config1 + "||" + result.APN_config2 + "||" + result.APN_config3 + "||" + result.APN_config4 + "||" + result.APN_config5 + "||" + result.APN_config6 + "||" + result.APN_config7 + "||" + result.APN_config8 + "||" + result.APN_config9,
    ipv6APNs : result.ipv6_APN_config0 + "||" + result.ipv6_APN_config1 + "||" + result.ipv6_APN_config2 + "||" + result.ipv6_APN_config3 + "||" + result.ipv6_APN_config4 + "||" + result.ipv6_APN_config5 + "||" + result.ipv6_APN_config6 + "||" + result.ipv6_APN_config7 + "||" + result.ipv6_APN_config8 + "||" + result.ipv6_APN_config9,
    apnMode : result.apn_mode,
    profileName :  result.m_profile_name || result.profile_name,
    wanDial : result.wan_dial,
    pdpType : result.pdp_type,
    pdpSelect : result.pdp_select,
    index : result.index,
    currIndex : result.Current_index,
    autoApns : result.apn_auto_config,
    wanApn : result.wan_apn,
    authMode : result.ppp_auth_mode,
    username : result.ppp_username,
    password : result.ppp_passwd,
    wanApnV6 : result.ipv6_wan_apn,
    authModeV6 : result.ipv6_ppp_auth_mode,
    usernameV6 : result.ipv6_ppp_username,
    passwordV6 : result.ipv6_ppp_passwd
}

results matching ""

    No results matching ""