Last active
October 26, 2020 10:19
-
-
Save manuel-rabade/a4384d7f86027a665341 to your computer and use it in GitHub Desktop.
API del modem Huawei E303
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl http://192.168.1.1/api/device/information | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<DeviceName>E303</DeviceName> | |
<SerialNumber>K3XBYAxxxxxxxxxx</SerialNumber> | |
<Imei>xxxxxxxxxxxxxxx</Imei> | |
<Imsi>xxxxxxxxxxxxxxx</Imsi> | |
<Iccid>xxxxxxxxxxxxxxxxxxxx</Iccid> | |
<Msisdn></Msisdn> | |
<HardwareVersion>CH2E303SM</HardwareVersion> | |
<SoftwareVersion>22.157.46.00.46</SoftwareVersion> | |
<WebUIVersion>11.010.12.01.46</WebUIVersion> | |
<Uptime>1140</Uptime> | |
<MacAddress1>00:1E:10:xx:xx:xx</MacAddress1> | |
<MacAddress2></MacAddress2> | |
<ProductFamily>GW</ProductFamily> | |
<Classify>DataCard</Classify> | |
</response> | |
$ curl http://192.168.1.1/api/device/autorun-version | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<Version>22.001.14.00.03</Version> | |
</response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Action | |
# 1: connect | |
# 0: disconnect | |
$ curl http://192.168.1.1/api/dialup/dial -d '<?xml version="1.0" encoding="UTF-8"?><request><Action>1</Action></request>' | |
<?xml version="1.0" encoding="UTF-8"?><response>OK</response> | |
$ curl http://192.168.1.1/api/dialup/connection | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<RoamAutoConnectEnable>1</RoamAutoConnectEnable> | |
<AutoReconnect>1</AutoReconnect> | |
<RoamAutoReconnctEnable>1</RoamAutoReconnctEnable> | |
<ReconnectInterval>3</ReconnectInterval> | |
<MaxIdelTime>0</MaxIdelTime> | |
<ConnectMode>0</ConnectMode> | |
</response> | |
$ curl http://192.168.1.1/api/dialup/profiles | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<CurrentProfile>1</CurrentProfile> | |
<Profiles> | |
<Profile> | |
<Index>1</Index> | |
<IsValid>1</IsValid> | |
<Name>Telcel 3G</Name> | |
<ApnIsStatic>1</ApnIsStatic> | |
<ApnName>ba.amx</ApnName> | |
<DailupNum>*99#</DailupNum> | |
<Username/> | |
<Password/> | |
<AuthMode>1</AuthMode> | |
<IpIsStatic>0</IpIsStatic> | |
<IpAddress/> | |
<DnsIsStatic>0</DnsIsStatic> | |
<PrimaryDns/> | |
<SecondaryDns/> | |
<ReadOnly>1</ReadOnly> | |
</Profile> | |
</Profiles> | |
</response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl http://192.168.1.1/api/global/module-switch | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<ussd_enabled>0</ussd_enabled> | |
<bbou_enabled>1</bbou_enabled> | |
<sms_enabled>1</sms_enabled> | |
<sdcard_enabled>0</sdcard_enabled> | |
<wifi_enabled>0</wifi_enabled> | |
<statistic_enabled>1</statistic_enabled> | |
<help_enabled>0</help_enabled> | |
</response> | |
$ curl http://192.168.1.1/api/online-update/status | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<CurrentComponentStatus>14</CurrentComponentStatus> | |
<CurrentComponentIndex>0</CurrentComponentIndex> | |
<TotalComponents>0</TotalComponents> | |
<DownloadProgress>0</DownloadProgress> | |
</response> | |
$ curl http://192.168.1.1/api/language/current-language | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<CurrentLanguage>es-ar</CurrentLanguage> | |
</response> | |
$ curl http://192.168.1.1/config/global/config.xml | |
<?xml version="1.0" encoding="UTF-8"?> | |
<config> | |
<!-- global模块参数 --> | |
<!-- 拨号成功自动打开指定主页,配置为空则不打开 --> | |
<homepage></homepage> | |
<!-- 默认语言 --> | |
<default_language>es-ar</default_language> | |
<!-- WebUI参数--> | |
<!-- WebUI版本号 --> | |
<version>11.010.12.01.46</version> | |
<!-- 自动消失的对话框消失的时间 --> | |
<dialogdisapear>3000</dialogdisapear> | |
<!-- tips自动消失的时间 --> | |
<tip_disapear>3000</tip_disapear> | |
<!-- 页面中自动刷新数据的时间 --> | |
<update_interval>3000</update_interval> | |
</config> | |
$ curl http://192.168.1.1/config/global/languagelist.xml | |
<?xml version="1.0" encoding="UTF-8"?> | |
<config> | |
<languages> | |
<!-- UI显示的语言列表 --> | |
<language>es-ar</language> | |
<language>en-us</language> | |
</languages> | |
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ConnectionStatus: | |
# 900: connecting | |
# 901: connected | |
# 902: disconnected | |
# 903: disconnecting | |
# ... | |
$ curl http://192.168.1.1/api/monitoring/status | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<ConnectionStatus>901</ConnectionStatus> | |
<SignalStrength>93</SignalStrength> | |
<SignalIcon>5</SignalIcon> | |
<CurrentNetworkType>7</CurrentNetworkType> | |
<CurrentServiceDomain>3</CurrentServiceDomain> | |
<RoamingStatus>0</RoamingStatus> | |
<BatteryStatus></BatteryStatus> | |
<BatteryLevel></BatteryLevel> | |
<simlockStatus></simlockStatus> | |
<WanIPAddress>10.x.x.x</WanIPAddress> | |
<PrimaryDns>10.x.x.x</PrimaryDns> | |
<SecondaryDns>10.x.x.x</SecondaryDns> | |
<CurrentWifiUser></CurrentWifiUser> | |
<TotalWifiUser></TotalWifiUser> | |
<ServiceStatus>2</ServiceStatus> | |
<SimStatus>1</SimStatus> | |
<WifiStatus></WifiStatus> | |
</response> | |
$ curl http://192.168.1.1/api/monitoring/traffic-statistics | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<CurrentConnectTime>1596</CurrentConnectTime> | |
<CurrentUpload>163569</CurrentUpload> | |
<CurrentDownload>286463</CurrentDownload> | |
<CurrentDownloadRate>250</CurrentDownloadRate> | |
<CurrentUploadRate>127</CurrentUploadRate> | |
<TotalUpload>29108216</TotalUpload> | |
<TotalDownload>51095466</TotalDownload> | |
<TotalConnectTime>311870</TotalConnectTime> | |
</response> | |
$ curl http://192.168.1.1/api/monitoring/check-notifications | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<UnreadMessage>0</UnreadMessage> | |
<SmsStorageFull>0</SmsStorageFull> | |
<OnlineUpdateStatus>13</OnlineUpdateStatus> | |
</response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl http://192.168.1.1/api/net/current-plmn | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<State>0</State> | |
<FullName>TELCEL</FullName> | |
<ShortName>TELCEL</ShortName> | |
<Numeric>334020</Numeric> | |
<Rat>2</Rat> | |
</response> | |
$ curl http://192.168.1.1/api/net/register | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<Mode>0</Mode> | |
<Plmn></Plmn> | |
<Rat></Rat> | |
</response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl http://192.168.1.1/api/pin/status | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<SimState>257</SimState> | |
<PinOptState>258</PinOptState> | |
<SimPinTimes>5</SimPinTimes> | |
<SimPukTimes></SimPukTimes> | |
</response> | |
$ curl http://192.168.1.1/api/pin/simlock | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response> | |
<SimLockEnable>0</SimLockEnable> | |
<SimLockRemainTimes>10</SimLockRemainTimes> | |
<pSimLockEnable></pSimLockEnable> | |
<pSimLockRemainTimes></pSimLockRemainTimes> | |
</response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl http://192.168.1.1/api/sms/sms-count | |
<?xml version="1.0" encoding="utf-8"?> | |
<response> | |
<LocalUnread>1</LocalUnread> | |
<LocalInbox>1</LocalInbox> | |
<LocalOutbox>1</LocalOutbox> | |
<LocalDraft>0</LocalDraft> | |
<LocalDeleted>0</LocalDeleted> | |
<SimUnread>0</SimUnread> | |
<SimInbox>0</SimInbox> | |
<SimOutbox>0</SimOutbox> | |
<SimDraft>0</SimDraft> | |
<LocalMax>500</LocalMax> | |
<SimMax>20</SimMax> | |
</response> | |
# BoxType | |
# 0: inbox | |
# 1: outbox | |
# 2: drafts | |
$ curl http://192.168.1.1/api/sms/sms-list -d '<?xml version:"1.0" encoding="UTF-8"?><request><PageIndex>1</PageIndex><ReadCount>20</ReadCount><BoxType>1</BoxType><SortType>0</SortType><Ascending>0</Ascending><UnreadPreferred>0</UnreadPreferred></request>' | |
<?xml version="1.0" encoding="utf-8"?> | |
<response> | |
<Count>1</Count> | |
<Messages> | |
<Message> | |
<Smstat>0</Smstat> | |
<Index>20002</Index> | |
<Phone>55xxxxxxxx</Phone> | |
<Content>Mensaje SMS</Content> | |
<Date>2015-02-03 14:16:12</Date> | |
<Sca>+52941xxxxxxxx</Sca> | |
<SaveType>4</SaveType> | |
<Priority>0</Priority> | |
<SmsType>1</SmsType> | |
</Message> | |
</Messages> | |
</response> | |
$ curl http://192.168.1.1/api/sms/send-sms -d '<?xml version:"1.0" encoding="UTF-8"?><request><Index>-1</Index><Phones><Phone>55xxxxxxxx</Phone></Phones><Sca></Sca><Content>Cuerpo Mensaje</Content><Length>14</Length><Reserved>1</Reserved><Date>2015-02-03 14:16:04</Date></request>' | |
$ curl http://192.168.1.1/api/sms/delete-sms -d '<?xml version:"1.0" encoding="UTF-8"?><request><Index>20000</Index></request>' | |
<?xml version="1.0" encoding="UTF-8"?> | |
<response>OK</response> |
Hi,
Appropriate help me on the below issue
i'm trying to get all SMS list using postman tool and give me the below error and attached screenshot from the command
"
<TITLE>IPWEBS - 400 Bad Request</TITLE>400 Bad Request
The request generated an error response.
" ![capture](https://user-images.githubusercontent.com/928203/50136657-22e60180-02a1-11e9-96b2-c384143e691e.JPG)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@silgon Thanks, I got the endpoints digging in the modem web portal.