Skip to content

tkav/optus-data-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages