title: ReferenceError: "sheet" is not defined
body: <p>It is my first time to develop the google script for my google sheet</p>
  
  <p>Here is the code of my script </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function doGet(e) {
    var url = 'https://docs.google.com/spreadsheets/d/1p3fW0Vkx89tdiws3Z-a5_LpLwyGYj7pacIek3f9Z96w/edit#gid=1862590156'
    var name = '無標題表單 (回應)'
    var SpreadSheet = SpreadsheetApp.openByUrl(url);   
    var values = sheet.getSheetValues(1, 1, 1, 1);
    Logger.log(values);
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>When I run the script,and then it show the message "ReferenceError: "sheet" is not defined. (第 7 行，檔案名稱：巨集)"</p>
  
  <p>I try to use the method in this article <a href="https://stackoverflow.com/questions/45625971/referenceerror-sheets-is-not-defined">ReferenceError: &quot;Sheets&quot; is not defined</a> but still cannot work.
  Thank you!</p>