Code Monkey home page Code Monkey logo

rivian-api's People

Contributors

adamucf avatar kaedenbrinkman avatar the-mace avatar whoaunder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rivian-api's Issues

Authentication Information/Clarification

So I'm trying to write a script to eventually call GetVehicleState and read that.

I'm currently getting "unauthenticated" error after successfully calling the authentication commands, I think I'm having trouble understanding the authentication process. It would be super helpful if the docs included a sample program that executed some of the calls.

Some of the confusing things I see:

  1. Under authentication it says "Authentication involves requesting a CSRF token and then using that token to request an access token via your login credentials. The access token is used to authenticate all other API requests.". Are two tokens used used for other requests? The CSRF and the Access Token? Does that me the function of the "refreshToken" and "userSessionToken" are unknown?
  2. All the commands seem to say that these are the required headers:
a-sess: <your app session token>
u-sess: <your user session token>
csrf-token: <your CSRF token>

Is that correct? The App Token isn't used? It's just the App Session Token (from the first authentication request)? Because I tried that specifically and it doesn't work. So I think something is in conflict with the statements made under authentication.
3. Anything you know about token lifecycles would be awesome to document (if you know the how fast the app refreshes them), and I assume the refreshToken is actually for token refreshes

A simple script that you can execute and prove it works would help immensely (and if the API changed, it could be used to identify that)

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.