We need a mobile usage portal that will allow our customers to logon and check their data usage for the month. It will also allow them to set a threshold at 80% and another at 100% that when passed will send an email alert out.
The portal will allow a user to logon and configure their phone number, data allowance and alert email address. it will then poll our servers every six hours using a webservice call to an API which will return all the usage data for that month in XML. We need this data filtered for a specific tariff and phone number then add all the durations together to get the total number of Megabytes. This total number then needs to be displayed in the portal and if the the 80 or 100% threshold has been breached a email is sent.
The Webservice Call is predefined and I have sample response data.