Get My Access Token
This shorcut is used by my Headed Home shortcut to get the Tesla account access token
gwgansScan med din iPhone for at installere
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.
Nyheder
Version 1.0
First release
Hvad den gør
6 handlinger-
Text
-
Text
-
URLhttps://owner-api.teslamotors.com/oauth/token
-
Get Contents of URL
-
Get Dictionary Value
-
Copy to Clipboard
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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)
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra gwgans
Du vil måske også kunne lide
Annonce