Why does SitesApp.getSites(myDomain) not work?

后端 未结 3 1274
有刺的猬
有刺的猬 2021-01-29 10:04

I\'m currently playing around with Google Apps Script and can\'t get the following snippet to work. \"enter

3条回答
  •  无人共我
    2021-01-29 10:31

    I think you should use:

      var mySite = 'https://sites.google.com/site/name_of_the_site';
      var site = SitesApp.getSiteByUrl(mySite);
    

提交回复
热议问题