stephangroen / tesla-php-client

A PHP client for easy integration of the Tesla API
MIT License
18 stars 8 forks source link

Add setAccessToken() #1

Closed Olen closed 7 years ago

Olen commented 7 years ago

Nice project.

I just added a function to the tesla class to setAccessToken.

public function setAccessToken(string $accessToken)
{   
    $this->accessToken = $accessToken;
}

It just makes the coding easier, as you can always init without a token, and if you have a cached token, you can add it later in the process

stephangroen commented 7 years ago

Thank you. You can submit a PR if you'd like.