Export Optus Data Usage
Based on https://github.com/stevenocchipinti/optus-mobile-usage.
Not working - Cannot find SUBSCRIPTION_ID variable to get data usage.
As per example.php:
Include class file
include('optus.php');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);The following environment variables are required, found by looking at the AJAX requests once logged in to the Optus website
USERNAMEPASSWORDCUSTOMER_IDACCOUNT_IDSUBSCRIPTION_IDCan't find
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