Giter VIP home page Giter VIP logo

teslaapipostmancollection's Introduction

What is this?

This is Postman collection for Tesla API (unoficial).

overview

You can find Tesla API details at the following URL.

Tesla API

Notes

You can get an Access Token for the Tesla API by using this postman collection. This access token can control your tesla's functions.

Access Tokens can be expired by changing your Tesla account password.

How to use Tesla API Postman Collection

Import Postman collection and Environment

  1. Download and register for Postman.

  2. Choose File | Import ....

import

  1. Select Import From Link.

  2. Paste the following two URLs and choose Import after each.

https://github.com/sugimomoto/TeslaAPIPostmanCollection/raw/master/Tesla%20API%20Postman%20Collection%20(Unofficial).postman_collection.json
https://github.com/sugimomoto/TeslaAPIPostmanCollection/raw/master/Tesla%20API%20Environment.postman_environment.json

importlink

Set up Environment and Access Token

  1. Choose the No environment drop down in top right corner.

  2. Select Tesla API environment.

selectenvironment

  1. Choose the eye icon to the right and then choose Edit.
    Enter a random string of characters for the OAuth2 State. Enter the Client ID, and Client Secret for the Tesla App.
    Client Id and Client Secret are at the following URL.
    Tesla API OAuth

enteraccount

  1. Open Get Access Token. Click on the Authorization tab. Scroll down and click Get New Access Token.

authorizationtab

  1. Sign into your Tesla Account.

signintotesla

  1. Click on Use Token. You can safely delete any expired tokens from Postman (indicated with strikethrough text).

usetoken

  1. Click Send to obtain an Access Token. You are now up and running with the Tesla API collections.

oauth

To refresh your token, repeat steps 4 through 7.

By the way, most requests have required your Tesla Id. You can find Id at Vehicles or Products Endpoint so you should request this endpoint first.

getid

Enjoy your Tesla API life!

teslaapipostmancollection's People

Contributors

sugimomoto avatar schnabel45 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.