Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 728 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 728 Bytes

telstra-data-usage

Export Telstra Group Usage Data to CSV

Usage

As per example.php:

Include class file

include('telstra.php');

Login

Enter your Telstra Account credentials and Login to create a session

//Telstra Account
$Username = 'telstrausername';
$Password = 'telstrapassword';

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

Export Usage

Get either a Summary or Detailed Usage Report

//Get Summary of Group Data
$csv = Telstra::getGroupUsage('group_summary.csv');

//Get Detailed Usage Summary
$csv = Telstra::getGroupUsage('detailed_summary.csv', 1);

Ensure .csv files and session.txt is writable in the directory