{"action":"opened","issue":{"url":"https://api.github.com/repos/Rotifer/GoogleSpreadsheetProgramming_2015/issues/2","labels_url":"https://api.github.com/repos/Rotifer/GoogleSpreadsheetProgramming_2015/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Rotifer/GoogleSpreadsheetProgramming_2015/issues/2/comments","events_url":"https://api.github.com/repos/Rotifer/GoogleSpreadsheetProgramming_2015/issues/2/events","html_url":"https://github.com/Rotifer/GoogleSpreadsheetProgramming_2015/issues/2","id":117179397,"number":2,"title":"Chapter 2 Example: helloDocument()","user":{"login":"pypo","id":67004,"avatar_url":"https://avatars.githubusercontent.com/u/67004?v=3","gravatar_id":"","url":"https://api.github.com/users/pypo","html_url":"https://github.com/pypo","followers_url":"https://api.github.com/users/pypo/followers","following_url":"https://api.github.com/users/pypo/following{/other_user}","gists_url":"https://api.github.com/users/pypo/gists{/gist_id}","starred_url":"https://api.github.com/users/pypo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pypo/subscriptions","organizations_url":"https://api.github.com/users/pypo/orgs","repos_url":"https://api.github.com/users/pypo/repos","events_url":"https://api.github.com/users/pypo/events{/privacy}","received_events_url":"https://api.github.com/users/pypo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-16T17:41:24Z","updated_at":"2015-11-16T17:41:24Z","closed_at":null,"body":"This GAS example from Chapter 2 didn't seem to work, meaning, no new document was created. No greeting. Nothing closed.\r\n\r\n-----------------\r\nfunction helloDocument() {\r\n  var greeting = 'Hello world!';\r\n  // Create DocumentApp instance.\r\n  var doc = \r\n    DocumentApp.create('test_DocumentApp');\r\n  // Write the greeting to a Google document.\r\n  doc.setText(greeting);\r\n  // Close the newly created document\r\n  doc.saveAndClose();  \r\n}\r\n------------------\r\n"}}