Get My Access Token
This shorcut is used by my Headed Home shortcut to get the Tesla account access token
gwgansScan with your iPhone to install
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.
What's New
Version 1.0
First release
What it does
6 actions-
Text
-
Text
-
URLhttps://owner-api.teslamotors.com/oauth/token
-
Get Contents of URL
-
Get Dictionary Value
-
Copy to Clipboard
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#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)
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by gwgans
You Might Also Like
Advertisement