I've pulled apart and analysed the
My T-Mobile client, and put together a Java API. You can use it to access all kinds of details from an account, such as call records and data usage. The project and code can be found at:
https://code.google.com/p/tmobile-api/
Enjoy!