Note that Tesla doesn't let you grant 3rd party apps access to the API (or that no API yet exists and all this is reverse engineered from the phone app).
So to use this, you would have to hand them your username and password.
My friend works on Tesla's engineering team. He mentioned a while back that they are introducing oAuth. Also, Smartcar has some relationship with Tesla they had meetings or something. Don't know much more.