Advertisement
infeopect

Netusage custom ISP config for Telstra

Jul 26th, 2017
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.04 KB | None | 0 0
  1. {
  2.     name: 'Telstra (New)',
  3.     group: 'Custom',
  4.     description: 'Updated version of Telstra script that doesnt use bigpond.com.',
  5.     process: [
  6.       'GET https://www.my.telstra.com.au/myaccount/home',
  7.       'POST https://signon.telstra.com.au/login goto=https%3A%2F%2Fwww.my.telstra.com.au%2Fmyaccount%2Foverview&gotoOnFail=https://www.my.telstra.com.au/myaccount/home/error?flag=&encoded=false&gx_charset=UTF-8&username={USERNAME}&password={PASSWORD}',
  8.       'REFRESHREDIRECT',
  9.       [
  10.         /The username or password you entered is incorrect/, 'ERROR',
  11.         /./,
  12.       ],
  13.       /data-usage-internet\?(accountId=[a-zA-Z0-9]+).*?(serviceId=[a-zA-Z0-9]+)/,
  14.       'GET https://www.my.telstra.com.au/myaccount/data-usage-internet?{1:1|NOESC}&{1:2|NOESC}',
  15.       [
  16.         /usage-so-far[^]*?number.*?>(.+?)<[^]*?allowance.*?>(\d+)[^]*?billing-dates[^]*?usage-detail-des[^]*?>(\d+)/,
  17.       ],
  18.     ],
  19.     varsDisplay: {
  20.       '0,1': {
  21.         'NONE': '{2:3|rolldate}',
  22.         'Usage': '{2:1|GB|usage} / {2:2|GB|usage-quota}',
  23.       }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement