Google Appscript to Login

1 post / 0 new
Google Appscript to Login


I have been trying to login to my account using Google App Scripts. I have used the following code but for some reason it returns a 404 error:

function UserAction() {
var url = "";
var options = {
"method": "post",
"headers": {
"Content-Type": "application/json; charset=UTF-8",
"Accept": "application/json; charset=UTF-8",
"Version": 2
"payload": {
"identifier": identifier,
"paswword": password
var response = UrlFetchApp.fetch(url, options);

Does anyone know how this could be fixed?