Get My Access Token
This shorcut is used by my Headed Home shortcut to get the Tesla account access token
gwgansScanne avec ton iPhone pour installer
This shorcut is used by my Headed Home shortcut to get the Tesla account access token.
WARNING: The Tesla account login and password are set in the shortcut and sent over the internet. Do not use this if you want high security.
Nouveautés
Version 1.0
First release
Ce qu’il fait
6 actions-
Text
-
Text
-
URLhttps://owner-api.teslamotors.com/oauth/token
-
Get Contents of URL
-
Get Dictionary Value
-
Copy to Clipboard
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/web'
#define color lightblue
#define glyph key
const tesla_email = "nil"
const tesla_password = "nil"
url("https://owner-api.teslamotors.com/oauth/token")
jsonRequest("", "POST", {
"client_id": "81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384",
"client_secret": "c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3",
"email": "{tesla_email}",
"grant_type": "password",
"password": "{tesla_password}"
})
setClipboard(nil, true)
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de gwgans
Ça pourrait aussi te plaire
Publicité