valanz / TeslaApi

Access and control your Tesla using PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Tesla Api [WIP] ##Access and control your Tesla using PHP ###Authentication

$tesla = new Tesla();
$tesla->useAuthentication('ApiAuth', [
	'grant_type'    => 'password',
    'client_id'     => 'abc',
    'client_secret' => '123',
    'email'         => 'elon@teslamotors.com',
    'password'      => 'edisonsux'
]);

###Get your vehicle(s)

$tesla->GetVehiclesApi()->getVehicles();

###Command your car

// honk the horn!
$tesla->GetCommandsApi()->honkHorn($id);

About

Access and control your Tesla using PHP


Languages

Language:PHP 100.0%