gasPropertyTest.gs

Home   »   gasPropertyTest.gs

// https://developers.google.com/apps-script/reference/properties/properties
function gasPropertyTest() {
  PropertiesService.getUserProperties().deleteAllProperties();

  PropertiesService.getUserProperties().setProperties({nickname: 'Bob', region: 'US', language: 'EN'});
  PropertiesService.getUserProperties().setProperties({foo: "bar"});
  
  Logger.log(
    PropertiesService.getUserProperties().getProperty('nickname')
  );

  PropertiesService.getUserProperties().deleteProperty('language');

  Logger.log(
    PropertiesService.getUserProperties().getProperty('foo')
  );
}


function setPassWord() {
  PropertiesService.getUserProperties().setProperties({password: ''});
}

Leave a Reply

Your email address will not be published. Required fields are marked *