tkav / optus-data-usage

Export Optus Data Usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

optus-data-usage

Export Optus Data Usage

Based on https://github.com/stevenocchipinti/optus-mobile-usage.

Not working - Cannot find SUBSCRIPTION_ID variable to get data usage.

Usage

As per example.php:

Include class file

include('optus.php');

Login

Enter your Optus Account credentials and Login to create a session

//Optus Account
$Username = 'USERNAME';
$Password = 'PASSWORD';

//Login and create session
$login = Optus::login($Username, $Password);

Variables Required

The following environment variables are required, found by looking at the AJAX requests once logged in to the Optus website

  • USERNAME
  • PASSWORD
  • CUSTOMER_ID
  • ACCOUNT_ID
  • SUBSCRIPTION_ID Can't find

Export Usage

Export Data Usage

//Get Data Usage
$txt = Optus::getPage('test.txt', $CustomerID, $AccountID, $SubscriptionID);

Ensure .txt file and session.txt is writable in the directory

About

Export Optus Data Usage

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%