This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getData() { | |
var id = 'REPLACE_WITH_GOOGLE_SHEET_ID'; | |
var sheet = SpreadsheetApp.openById(id); | |
var today = Utilities.formatDate(new Date(), 'America/New_York', "MM/dd/yy hh:mm:ss a"); | |
var base_url = 'https://owner-api.teslamotors.com/api/1/vehicles/' | |
var auth_token = "Bearer REPLACE_WITH_AUTHORIZATION_STRING" | |