Skip to content

Commit

Permalink
Merge pull request #1 from patrickdemers6/readme-links
Browse files Browse the repository at this point in the history
fix incorrect Fleet API documentation links
  • Loading branch information
tesla-sdk-publish authored Oct 10, 2023
2 parents 7f69552 + 9400824 commit 302dd61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ obtain a valid OAuth token from the user, and the user must enroll the
application's public key in the vehicle.

Tesla's website has [instructions for obtaining OAuth
tokens](https://developer.tesla.com/docs/tesla-fleet-api). This README has
tokens](https://developer.tesla.com/docs/fleet-api). This README has
instructions for generating private keys and directing the user to the
public-key enrollment flow. The tools in this repository can use the OAuth
token and the private key to send commands to vehicles.
Expand Down Expand Up @@ -71,7 +71,7 @@ The final command installs the following utilities:
* **tesla-http-proxy**: An HTTP proxy that exposes a REST API for sending
vehicle commands.
* **tesla-auth-token**: Write an OAuth token to your system keyring. This
utility does not fetch tokens. Read the [Fleet API documentation](https://developer.tesla.com/docs/tesla-fleet-api#authentication)
utility does not fetch tokens. Read the [Fleet API documentation](https://developer.tesla.com/docs/fleet-api#authentication)
for information on fetching OAuth tokens.

Configure environment variables (optional):
Expand Down Expand Up @@ -117,7 +117,7 @@ As discussed above, your HTTP proxy will need to authenticate both with Tesla
Tesla's servers require your client to provide an OAuth access token before
they will forward commands to a vehicle. You must obtain the OAuth token from
the vehicle's owner. See [Tesla's
website](https://developer.tesla.com/docs/tesla-fleet-api) for instructions on
website](https://developer.tesla.com/docs/fleet-api) for instructions on
registering a developer account and obtaining OAuth tokens.

### Generating a command-authentication private key
Expand Down Expand Up @@ -160,7 +160,7 @@ identifies your application. The Tesla app will display this domain name to the
user when it asks if they wish to approve your request.

Follow the instructions to [register your public key and
domain](https://developer.tesla.com/docs/tesla-fleet-api#partner-endpoints).
domain](https://developer.tesla.com/docs/fleet-api#register).
The public key referred to in those instructions is the `public_key.pem` file
in the above example.

Expand Down Expand Up @@ -230,7 +230,7 @@ curl --cacert cert.pem \

### REST API documentation

The HTTP proxy implements the [Tesla Fleet API vehicle command endpoints](https://developer.tesla.com/docs/tesla-fleet-api#vehicle-commands).
The HTTP proxy implements the [Tesla Fleet API vehicle command endpoints](https://developer.tesla.com/docs/fleet-api#vehicle-commands).

## Using the Golang library

Expand Down
2 changes: 1 addition & 1 deletion pkg/vehicle/infotainment.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ func (v *Vehicle) SetSentryMode(ctx context.Context, state bool) error {
//
// We recommend users avoid this command unless they are managing a fleet of vehicles and understand
// the implications of enabling the mode. See official API documentation at
// https://developer.tesla.com/docs/tesla-fleet-api#guest_mode.
// https://developer.tesla.com/docs/fleet-api#guest_mode.
func (v *Vehicle) SetGuestMode(ctx context.Context, enabled bool) error {
return v.executeCarServerAction(ctx,
&carserver.Action_VehicleAction{
Expand Down

0 comments on commit 302dd61

Please sign in to comment.