{"id":5802,"date":"2015-07-02T15:55:56","date_gmt":"2015-07-02T06:55:56","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=5802"},"modified":"2016-10-25T22:07:02","modified_gmt":"2016-10-25T13:07:02","slug":"google-apps-scriptoffice-365-unified-api%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=5802","title":{"rendered":"[Google Apps Script]Office 365 unified API\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u3002"},"content":{"rendered":"<p>\u4e45\u3057\u3076\u308a\u306eGoogle Apps Script\u30cd\u30bf\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fGoogle Apps Script\u304b\u3089Office 365 unified API\u3092\u4f7f\u3063\u3066\u3001\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">\u4e0b\u6e96\u5099<\/h4>\n<ol>\n<li>\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=4350\" title=\"[Google Apps Script]OAuth\u8a8d\u8a3c(2.0)\u304c\u5fc5\u8981\u306aWeb API\u3092\u5229\u7528\u3059\u308b\u3002 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">[Google Apps Script]OAuth\u8a8d\u8a3c(2.0)\u304c\u5fc5\u8981\u306aWeb API\u3092\u5229\u7528\u3059\u308b\u3002<\/a>\u300d\u3092\u53c2\u8003\u306b\u3001<span style=\"color: #ff0000; font-weight: bold;\">Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/span>\u3068\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u5148\u306eURL<\/span>\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<li>\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=5620\" title=\"Office 365 unified API\u3092VBA\u304b\u3089\u547c\u3073\u51fa\u3059 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">Office 365 unified API\u3092VBA\u304b\u3089\u547c\u3073\u51fa\u3059<\/a>\u300d\u3092\u53c2\u8003\u306b\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID<\/span>\u3092\u53d6\u5f97\u3057\u307e\u3059(\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7a2e\u985e\uff1a\u30cd\u30a4\u30c6\u30a3\u30d6 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u4ed6\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5bfe\u3059\u308b\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\uff1aOffice 365 unified API (preview)\u3001\u30c7\u30ea\u30b2\u30fc\u30c8\u3055\u308c\u305f\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\uff1aSend mail as a user)\u3002<\/li>\n<\/ol>\n<h4 class=\"style4a\">\u30b3\u30fc\u30c9<\/h4>\n<p><strong>\u30fb\u30b3\u30fc\u30c9.gs<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var access_token;\r\nvar client_id = '(\u4e0b\u6e96\u5099\u3067\u53d6\u5f97\u3057\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID)';\r\nvar redirect_uri = 'https:\/\/script.google.com\/macros\/s\/abcdefg\/usercallback'; \/\/\u4e0b\u6e96\u5099\u3067\u53d6\u5f97\u3057\u305f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u5148\u306eURL\r\nvar resource_uri = 'https:\/\/graph.microsoft.com\/';\r\nvar token_uri = 'https:\/\/login.microsoftonline.com\/common\/oauth2\/token';\r\nvar rest_uri = 'https:\/\/graph.microsoft.com\/beta\/me\/sendmail';\r\n\r\nfunction doGet(e) {\r\n  var auth_uri = 'https:\/\/login.windows.net\/common\/oauth2\/authorize?response_type=code';\r\n  auth_uri += '&amp;redirect_uri=' + encodeURIComponent(redirect_uri);\r\n  auth_uri += '&amp;client_id=' + client_id;\r\n  auth_uri += '&amp;resource=' + encodeURIComponent(resource_uri);\r\n  auth_uri += '&amp;state=' + ScriptApp.newStateToken().withMethod('callback').withTimeout(200).createToken();\r\n  \r\n  var html = '&lt;p style=&quot;padding:10px;&quot;&gt;';\r\n  html += '&lt;h4&gt;\u25a0 Office 365 unified API \u30e1\u30fc\u30eb\u9001\u4fe1\u30b5\u30f3\u30d7\u30eb&lt;\/h4&gt;';\r\n  html += '&lt;a href=&quot;' + auth_uri + '&quot;&gt;\u30e1\u30fc\u30eb\u9001\u4fe1&lt;\/a&gt;';\r\n  html += '&lt;\/p&gt;';\r\n  return HtmlService.createHtmlOutput(html);\r\n}\r\n\r\nfunction callback(e){\r\n  var opt = {\r\n    'method' : 'POST',\r\n    'payload' : {\r\n        'code' : e.parameter.code,\r\n        'client_id' : client_id,\r\n        'redirect_uri' :redirect_uri,\r\n        'grant_type' : 'authorization_code'\r\n    },\r\n    'muteHttpExceptions' : true\r\n  };\r\n  var res = UrlFetchApp.fetch(token_uri, opt);\r\n  var dat = JSON.parse(res.getContentText());\r\n  access_token = dat.access_token;\r\n  return HtmlService.createTemplateFromFile('contents')\r\n                    .evaluate()\r\n                    .setTitle('\u30e1\u30fc\u30eb\u9001\u4fe1\u30b5\u30f3\u30d7\u30eb')\r\n                    .setSandboxMode(HtmlService.SandboxMode.NATIVE);\r\n}\r\n\r\nfunction sendMail(address, subject, body, access_token){\r\n\/\/\u30e1\u30fc\u30eb\u9001\u4fe1\r\n\/\/ *\u65e5\u672c\u8a9e\u975e\u5bfe\u5fdc\r\n\/\/ *\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u5909\u63db\u3057\u3066\u3082\u52b9\u679c\u306a\u3057\r\n\/\/ Utilities.newBlob('').setDataFromString(subject, 'UTF-8').getDataAsString('Shift_JIS')\r\n  var json = {\r\n    'Message': {\r\n      'Subject': subject,\r\n      'Body': {\r\n        'ContentType': 'Text',\r\n        'Content': body\r\n      },\r\n      'ToRecipients': &#x5B;\r\n        {\r\n          'EmailAddress': {\r\n            'Address': address\r\n          }\r\n        }\r\n      ]\r\n    },\r\n    'SaveToSentItems': 'false'\r\n  };\r\n  \r\n  var opt = {\r\n    'method' : 'POST',\r\n    'contentType' : 'application\/json',\r\n    'headers' : {\r\n      'Authorization': 'Bearer ' + access_token\r\n    }, \r\n    'payload': JSON.stringify(json), \r\n    'muteHttpExceptions' : true\r\n  };\r\n  UrlFetchApp.fetch(rest_uri, opt);\r\n}<\/pre>\n<p><strong>\u30fbcontents.html<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;style&gt;\r\n* {\r\n  padding: 10px;\r\n}\r\ntd {\r\n  border-style: none;\r\n}\r\n&lt;\/style&gt;\r\n&lt;table&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;\u5b9b\u5148\uff1a&lt;\/td&gt;\r\n    &lt;td&gt;&lt;input id=&quot;txtAddress&quot; type=&quot;text&quot; size=&quot;30&quot; value=&quot;&quot;&gt;&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;\u4ef6\u540d\uff1a&lt;\/td&gt;\r\n    &lt;td&gt;&lt;input id=&quot;txtSubject&quot; type=&quot;text&quot; size=&quot;30&quot; value=&quot;Test Mail&quot;&gt;&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;\u672c\u6587&lt;\/td&gt;\r\n    &lt;td&gt;&lt;textarea id=&quot;txtBody&quot; cols=40 rows=4&gt;Send Test E-mail&lt;\/textarea&gt;&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr&gt;\r\n    &lt;td colspan=&quot;2&quot;&gt;&lt;input id=&quot;btnSend&quot; type=&quot;button&quot; value=&quot;\u9001\u4fe1&quot; onclick=&quot;btnSend_onClick()&quot;&gt;&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;\/td&gt;&lt;\/tr&gt;\r\n  &lt;tr&gt;\r\n    &lt;td colspan=&quot;2&quot;&gt;&lt;div id=&quot;divResults&quot;&gt;&lt;\/div&gt;&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt;\r\n&lt;input type=&quot;hidden&quot; id=&quot;txtAccessToken&quot; value=&quot;&lt;?= access_token ?&gt;&quot;&gt;\r\n&lt;script&gt;  \r\n  function btnSend_onClick(){\r\n    var objAddress = document.getElementById('txtAddress');\r\n    var objSubject = document.getElementById('txtSubject');\r\n    var objBody = document.getElementById('txtBody');\r\n    var objAccessToken = document.getElementById('txtAccessToken');\r\n    var objResults = document.getElementById('divResults');\r\n    this.disabled = 'true';\r\n    objResults.innerHTML = '';\r\n    google.script.run.withSuccessHandler(onComplete)\r\n                     .withFailureHandler(onComplete)\r\n                     .sendMail(objAddress.value, \r\n                               objSubject.value, \r\n                               objBody.value, \r\n                               objAccessToken.value);\r\n  }\r\n  \r\n  function onComplete(dat){\r\n    var objResults = document.createElement('span');\r\n    var objSend = document.getElementById('btnSend');\r\n    objResults.innerHTML = '\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u307e\u3057\u305f\u3002';\r\n    document.getElementById('divResults').appendChild(objResults);\r\n    objSend.disabled = '';\r\n  }\r\n&lt;\/script&gt;<\/pre>\n<h4 class=\"style4a\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c<\/h4>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u30a8\u30c7\u30a3\u30bf\u306b\u8cbc\u308a\u4ed8\u3051\u305f\u3089\u3001\u3044\u3088\u3044\u3088\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u307e\u305a\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u627f\u8a8d\u3059\u308b\u305f\u3081\u3001doGet\u95a2\u6570\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_01.jpg\" alt=\"GAS_Office365unifiedAPI_01\" width=\"714\" height=\"235\" class=\"alignnone size-full wp-image-5803\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_01.jpg 714w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_01-300x99.jpg 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/a><\/p>\n<li>\u300c\u627f\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u7d9a\u884c<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_02.jpg\" alt=\"GAS_Office365unifiedAPI_02\" width=\"291\" height=\"175\" class=\"alignnone size-full wp-image-5804\" \/><\/a><\/p>\n<li>\u300c(\u30d7\u30ed\u30b8\u30a7\u30af\u30c8)\u304c\u6b21\u306e\u8a31\u53ef\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3044\u307e\u3059\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u627f\u8a8d\u3059\u308b<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_03.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_03.jpg\" alt=\"GAS_Office365unifiedAPI_03\" width=\"503\" height=\"401\" class=\"alignnone size-full wp-image-5805\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_03.jpg 503w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_03-300x239.jpg 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/a><\/p>\n<li>\u627f\u8a8d\u304c\u7d42\u308f\u3063\u305f\u3089\u300c\u516c\u958b\u300d\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30a6\u30a7\u30d6 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u5c0e\u5165<\/span>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_04.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_04.jpg\" alt=\"GAS_Office365unifiedAPI_04\" width=\"521\" height=\"239\" class=\"alignnone size-full wp-image-5806\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_04.jpg 521w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_04-300x138.jpg 300w\" sizes=\"auto, (max-width: 521px) 100vw, 521px\" \/><\/a><\/p>\n<li>\u300c\u30a6\u30a7\u30d6 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u5c0e\u5165\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u6700\u65b0\u306e\u30b3\u30fc\u30c9<\/span>\u300d\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_05.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_05.jpg\" alt=\"GAS_Office365unifiedAPI_05\" width=\"450\" height=\"195\" class=\"alignnone size-full wp-image-5807\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_05.jpg 450w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_05-300x130.jpg 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<li>\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30e1\u30fc\u30eb\u9001\u4fe1<\/span>\u300d\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_06.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_06.jpg\" alt=\"GAS_Office365unifiedAPI_06\" width=\"377\" height=\"240\" class=\"alignnone size-full wp-image-5808\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_06.jpg 377w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_06-300x191.jpg 300w\" sizes=\"auto, (max-width: 377px) 100vw, 377px\" \/><\/a><\/p>\n<li>365 API\u306e\u8a8d\u8a3c\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30b5\u30a4\u30f3\u30a4\u30f3<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_07.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_07.jpg\" alt=\"GAS_Office365unifiedAPI_07\" width=\"806\" height=\"544\" class=\"alignnone size-full wp-image-5809\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_07.jpg 806w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_07-300x202.jpg 300w\" sizes=\"auto, (max-width: 806px) 100vw, 806px\" \/><\/a><\/p>\n<li>\u518d\u3073\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u5b9b\u5148\u3001\u4ef6\u540d\u3001\u672c\u6587\u3092\u5165\u529b\u3057\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u9001\u4fe1<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001Google Apps Script\u306e\u4ed5\u69d8\u304b\u3069\u3046\u304b\u306f\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u4ef6\u540d\u3084\u672c\u6587\u306b\u65e5\u672c\u8a9e\u3092\u4f7f\u7528\u3059\u308b\u3068\u6587\u5b57\u5316\u3051\u304c\u767a\u751f<\/span>\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_08.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_08.jpg\" alt=\"GAS_Office365unifiedAPI_08\" width=\"600\" height=\"458\" class=\"alignnone size-full wp-image-5810\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_08.jpg 600w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_08-300x229.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_09.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_09.jpg\" alt=\"GAS_Office365unifiedAPI_09\" width=\"442\" height=\"363\" class=\"alignnone size-full wp-image-5811\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_09.jpg 442w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_09-300x246.jpg 300w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/a><\/p>\n<li>\u30e1\u30fc\u30eb\u9001\u4fe1\u5148\u3067\u53d7\u4fe1\u78ba\u8a8d\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u9001\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\u304c\u5c4a\u3044\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_10.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_10.jpg\" alt=\"GAS_Office365unifiedAPI_10\" width=\"527\" height=\"498\" class=\"alignnone size-full wp-image-5812\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_10.jpg 527w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GAS_Office365unifiedAPI_10-300x283.jpg 300w\" sizes=\"auto, (max-width: 527px) 100vw, 527px\" \/><\/a>\n<\/ol>\n<p>\u4ee5\u4e0a\u3067\u3001Google Apps Script\u3067\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u3001Office 365 unified API\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3067\u304d\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u306e\u30c6\u30b9\u30c8\u4e2d\u3001JSON\u5f62\u5f0f\u3067\u6e21\u3059\u4ef6\u540d\u3084\u672c\u6587\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5909\u3048\u3066\u307f\u305f\u308a\u3001POST\u3059\u308b\u969b\u306e\u30d8\u30c3\u30c0\u30fc\u3092\u5909\u3048\u3066\u307f\u305f\u308a\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u8272\u3005\u3084\u3063\u3066\u3082\u9001\u3089\u308c\u308b\u30e1\u30fc\u30eb\u306echarset\u304c<span style=\"color: #ff0000; font-weight: bold;\">\u201cus-ascii\u201d\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u3001\u65e5\u672c\u8a9e\u3092\u9001\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/span><\/p>\n<p>\u6b63\u76f4\u30b9\u30c3\u30ad\u30ea\u3057\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u4e00\u5fdcAPI\u306e\u52d5\u4f5c\u306f\u78ba\u8a8d\u3067\u304d\u305f\u306e\u3067\u3001\u30b3\u30ec\u3067\u826f\u3057\u3068\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e45\u3057\u3076\u308a\u306eGoogle Apps Script\u30cd\u30bf\u3067\u3059\u3002 \u4eca\u56de\u306fGoogle Apps Script\u304b\u3089Office 365 unified API\u3092\u4f7f\u3063\u3066\u3001\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002 \u4e0b\u6e96\u5099 \u300c[Google  [&hellip;]","protected":false},"author":1,"featured_media":7118,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65e5\u672c\u8a9e\u9001\u4fe1\u3067\u304d\u306a\u3044\u539f\u56e0\u306f\u304d\u3063\u3068GAS\u306e\u4ed5\u69d8\u2026\u3002 [Google Apps Script]Office 365 unified API\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u3002 #gasja","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[147,112,126],"tags":[],"class_list":["post-5802","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-office365","category-google"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Office365.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1vA","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5802"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5802\/revisions"}],"predecessor-version":[{"id":7558,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5802\/revisions\/7558"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7118"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}