{"id":10977,"date":"2018-10-17T20:42:27","date_gmt":"2018-10-17T11:42:27","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=10977"},"modified":"2018-10-17T20:42:27","modified_gmt":"2018-10-17T11:42:27","slug":"google-apps-scriptmicrosoft-graph-api%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6microsoft%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e3%81%a8%e9%80%a3%e6%90%ba%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=10977","title":{"rendered":"[Google Apps Script]Microsoft Graph API\u3092\u4f7f\u3063\u3066Microsoft\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u9023\u643a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><a href=\"https:\/\/developer.microsoft.com\/ja-jp\/graph\" title=\"Microsoft Graph\" target=\"_blank\">Microsoft Graph API<\/a>\u3092\u4f7f\u3063\u3066\u3001OneDrive\u306b\u3042\u308bExcel\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30b0\u30e9\u30d5\u3092\u753b\u50cf\u3068\u3057\u3066\u53d6\u5f97\u3057\u3001Google \u30b9\u30e9\u30a4\u30c9\u306b\u633f\u5165\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u300c<a href=\"https:\/\/gaiax.connpass.com\/event\/101411\/\" title=\"\u3010\u30a8\u30f3\u30b8\u30cb\u30a2\u4ea4\u6d41\u4f1a\u3011Google Apps Script \u6d3b\u7528\u30df\u30fc\u30c8\u30a2\u30c3\u30d7 #3 - connpass\" target=\"_blank\">\u3010\u30a8\u30f3\u30b8\u30cb\u30a2\u4ea4\u6d41\u4f1a\u3011Google Apps Script \u6d3b\u7528\u30df\u30fc\u30c8\u30a2\u30c3\u30d7 #3<\/a>\u300d\u306eLT\u5411\u3051\u306b\u8003\u3048\u305f\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<h4 class=\"style4a\">Microsoft Graph\u3068\u306f\uff1f<\/h4>\n<p>\u5f53\u30d6\u30ed\u30b0\u3067\u306f\u3001\u3053\u308c\u307e\u3067<a href=\"https:\/\/www.ka-net.org\/blog\/?cat=147\" title=\"Microsoft Graph | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">Microsoft Graph\u95a2\u9023\u306e\u69d8\u3005\u306a\u8a18\u4e8b<\/a>\u3092\u66f8\u3044\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>Microsoft Graph(\u4ee5\u4e0bGraph)\u3068\u306f\u3001\u4e00\u8a00\u3067\u8a00\u3063\u3066\u3057\u307e\u3046\u3068\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u201cOffice 365\u306a\u3069\u306eMicrosoft\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u4e0a\u3067\u7ba1\u7406\u3055\u308c\u308b\u69d8\u3005\u306a\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306aAPI\u201d<\/span>\u3067\u3059\u3002<\/p>\n<p>Graph\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u5916\u90e8\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u3001Exchange\u3084SharePoint\u3001OneDrive\u3084Excel\u3068\u3044\u3063\u305f\u3001\u88fd\u54c1\u3092\u307e\u305f\u304c\u3063\u305f\u53c2\u7167\u3084\u64cd\u4f5c\u3092\u7c21\u5358\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3082\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u305f\u3060\u4e00\u3064\u3002<br \/>\n\u300e<span style=\"color: #ff0000; font-weight: bold;\">https:\/\/graph.microsoft.com<\/span>\u300f\u306e\u307f\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/developer.microsoft.com\/ja-jp\/graph\" title=\"Microsoft Graph\" target=\"_blank\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u3092\u898b\u308b\u3068\u3001\u5177\u4f53\u7684\u306b\u4f55\u304c\u3067\u304d\u308b\u306e\u304b\u304c\u63b4\u3081\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">OAuth2 for Apps Script\u30e9\u30a4\u30d6\u30e9\u30ea<\/h4>\n<p>Graph\u306f<a href=\"https:\/\/ja.wikipedia.org\/wiki\/OAuth\" title=\"OAuth - Wikipedia\" target=\"_blank\">OAuth 2.0<\/a>\u8a8d\u8a3c\uff06<a href=\"https:\/\/ja.wikipedia.org\/wiki\/Representational_State_Transfer\" title=\"Representational State Transfer - Wikipedia\" target=\"_blank\">REST<\/a>\u3067\u547c\u3073\u51fa\u305b\u307e\u3059\u304c\u3001Google Apps Script\u306b\u306f\u5916\u90e8API\u3092\u5b9f\u884c\u3059\u308b\u306e\u306b\u975e\u5e38\u306b\u5f79\u7acb\u3064\u30e9\u30a4\u30d6\u30e9\u30ea\u300c<a href=\"https:\/\/github.com\/gsuitedevs\/apps-script-oauth2\" title=\"OAuth2 for Apps Script\" target=\"_blank\">OAuth2 for Apps Script<\/a>\u300d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Google\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3042\u308b<a href=\"https:\/\/twitter.com\/erickoleda\" title=\"Eric Koleda(@erickoleda)\u3055\u3093\" target=\"_blank\">Eric Koleda<\/a>\u6c0f\u304c\u4f5c\u6210\u3057\u305f(\u3089\u3057\u3044)\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3001\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8a8d\u8a3c\u542b\u3081\u305f\u9762\u5012\u306a\u51e6\u7406\u3092\u62c5\u3063\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u77ed\u3044\u30b3\u30fc\u30c9\u3067\u7c21\u6f54\u306b\u3001API\u3092\u5229\u7528\u3057\u305f\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">\u4e0b\u6e96\u5099<\/h4>\n<p>\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u524d\u306b\u3001\u4e0a\u8a18\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8a2d\u5b9a\u3084\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306e\u53d6\u5f97\u3068\u3044\u3063\u305f\u3001\u4e0b\u6e96\u5099\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>Google \u30b9\u30e9\u30a4\u30c9\u3092\u65b0\u898f\u4f5c\u6210\u3057\u3001\u30b9\u30af\u30ea\u30d7\u30c8 \u30a8\u30c7\u30a3\u30bf\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_01.jpg\" alt=\"\" width=\"776\" height=\"346\" class=\"alignnone size-full wp-image-10978\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_01.jpg 776w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_01-300x134.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_01-768x342.jpg 768w\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" \/><\/a><\/p>\n<li>\u30ea\u30bd\u30fc\u30b9\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30e9\u30a4\u30d6\u30e9\u30ea<\/span>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_02.jpg\" alt=\"\" width=\"559\" height=\"213\" class=\"alignnone size-full wp-image-10979\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_02.jpg 559w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_02-300x114.jpg 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/a><\/p>\n<li>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8ffd\u52a0\u6b04\u306b\u4e0b\u8a18\u30b9\u30af\u30ea\u30d7\u30c8ID\u3092\u5165\u529b\u3057\u3066\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u8ffd\u52a0<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF<\/pre>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_03.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_03.jpg\" alt=\"\" width=\"705\" height=\"437\" class=\"alignnone size-full wp-image-10980\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_03.jpg 705w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_03-300x186.jpg 300w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/a><\/p>\n<li>\u300cOAuth2\u300d\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3089\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u9078\u629e(2018\u5e7410\u6708\u6642\u70b9\u3067\u306f<span style=\"color: #ff0000; font-weight: bold;\">30<\/span>\u304c\u6700\u65b0)\u3057\u3001\u8b58\u5225\u5b50\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u300c<span style=\"color: #ff0000; font-weight: bold;\">OAuth2<\/span>\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u5f8c\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u4fdd\u5b58<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_04.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_04.jpg\" alt=\"\" width=\"708\" height=\"442\" class=\"alignnone size-full wp-image-10981\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_04.jpg 708w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_04-300x187.jpg 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/a><\/p>\n<li>\u30d5\u30a1\u30a4\u30eb\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3<\/span>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_05.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_05.jpg\" alt=\"\" width=\"433\" height=\"476\" class=\"alignnone size-full wp-image-10982\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_05.jpg 433w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_05-273x300.jpg 273w\" sizes=\"auto, (max-width: 433px) 100vw, 433px\" \/><\/a><\/p>\n<li>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u60c5\u5831<\/span>\u300d\u30bf\u30d6\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30b9\u30af\u30ea\u30d7\u30c8 ID<\/span>\u300d\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001\u30e1\u30e2\u5e33\u306a\u3069\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_06.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_06.jpg\" alt=\"\" width=\"708\" height=\"447\" class=\"alignnone size-full wp-image-10983\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_06.jpg 708w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_06-300x189.jpg 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/a><\/p>\n<li>\u624b\u98066.\u3067\u53d6\u5f97\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8ID\u3092\u542b\u3081\u305f\u3001\u4e0b\u8a18URL\u304c<span style=\"color: #ff0000; font-weight: bold;\">\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URL<\/span>\u3068\u306a\u308a\u307e\u3059\u3002<\/li>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">https:\/\/script.google.com\/macros\/d\/\uff08\u30b9\u30af\u30ea\u30d7\u30c8ID\uff09\/usercallback<\/pre>\n<li>\u4e0b\u8a18\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3001<a href=\"https:\/\/apps.dev.microsoft.com\/\" title=\"Application Registration Portal\" target=\"_blank\">Application Registration Portal<\/a>\u304b\u3089\u30a2\u30d7\u30ea\u306e\u767b\u9332\u3092\u884c\u3044\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 ID(\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID)\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30fc\u30af\u30ec\u30c3\u30c8(\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8)\u306f\u5f8c\u3067\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u3001\u30e1\u30e2\u5e33\u306a\u3069\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=8469\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_PHPSDK_Sample_13-120x120.jpg' alt='Microsoft Graph SDK for PHP\u3092\u4f7f\u3063\u305fAPI\u306e\u547c\u3073\u51fa\u3057\u30b5\u30f3\u30d7\u30eb' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2017.05.24<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=8469\">Microsoft Graph SDK for PHP\u3092\u4f7f\u3063\u305fAPI\u306e\u547c\u3073\u51fa\u3057\u30b5\u30f3\u30d7\u30eb <\/a><\/div><div class=\"cardlink_excerpt\">\u77e5\u3089\u306a\u3044\u9593\u306b(\u6050\u3089\u304fBuild 2017\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u306b\u5408\u308f\u305b\u3066)Microsoft Graph\u30fbPHP\u7528SDK\u306e\u5b89\u5b9a\u7248\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u3055\u3063\u305d\u304f\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002\r\n\r\n\u30c6\u30b9\u30c8\u74b0\u5883\r\n\r\n\r\nWindows 7 Professional SP1 64-b...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n<ul>\n<li>\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\uff1aWeb<\/li>\n<li>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8 URL\uff1a\u4e0a\u8a18\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URL<\/li>\n<li>Microsoft Graph \u306e\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\uff1aUser.Read\u3001Files.ReadWrite<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_07.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_07.jpg\" alt=\"\" width=\"1048\" height=\"1408\" class=\"alignnone size-full wp-image-10984\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_07.jpg 1048w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_07-223x300.jpg 223w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_07-768x1032.jpg 768w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_07-762x1024.jpg 762w\" sizes=\"auto, (max-width: 1048px) 100vw, 1048px\" \/><\/a>\n<\/ol>\n<p>\u4ee5\u4e0a\u3067\u4e0b\u6e96\u5099\u4f5c\u696d\u306f\u7d42\u4e86\u3067\u3059\u3002<\/p>\n<h4 class=\"style4a\">OneDrive\u306b\u3042\u308bExcel\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30b0\u30e9\u30d5\u3092\u753b\u50cf\u3068\u3057\u3066\u53d6\u5f97\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/h4>\n<p>\u6e96\u5099\u304c\u3067\u304d\u305f\u306e\u3067\u3001\u4e0b\u8a18\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3001OneDrive\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u3042\u308bExcel\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u9069\u5b9c\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var CLIENT_ID = &quot;(\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID)&quot;;\r\nvar CLIENT_SECRET = &quot;(\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8)&quot;;\r\nvar scopes = &quot;User.Read Files.ReadWrite&quot;;\r\nvar endpointUrl = &quot;https:\/\/graph.microsoft.com\/v1.0&quot;; \/\/Microsoft Graph\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\r\nvar fileName = &quot;ChartSample.xlsx&quot;; \/\/OneDrive\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u3042\u308bExcel\u30d5\u30a1\u30a4\u30eb\u540d\u6c7a\u3081\u6253\u3061\r\n\r\nfunction onOpen() {\r\n  var ui = SlidesApp.getUi();\r\n  ui.createMenu(&quot;API Menu&quot;)\r\n    .addItem(&quot;\u8a8d\u8a3c&quot;, &quot;authorize&quot;)\r\n    .addItem(&quot;\u30e6\u30fc\u30b6\u30fc\u540d\u53d6\u5f97&quot;, &quot;getUserName&quot;)\r\n    .addItem(&quot;Excel API\u547c\u3073\u51fa\u3057&quot;, &quot;insertChartImage&quot;)\r\n    .addItem(&quot;\u30ed\u30b0\u30a2\u30a6\u30c8&quot;, &quot;reset&quot;)\r\n    .addToUi();\r\n}\r\n\r\n\/\/\u8a8d\u8a3c\r\nfunction authorize() {\r\n  var service = getService();\r\n  if (!service.hasAccess()) {\r\n    var authorizationUrl = service.getAuthorizationUrl();\r\n    var template = HtmlService.createTemplate('&lt;a href=&quot;&lt;?= authorizationUrl ?&gt;&quot; target=&quot;_blank&quot;&gt;\u8a8d\u8a3c\u30da\u30fc\u30b8\u3092\u958b\u304d\u307e\u3059&lt;\/a&gt;');\r\n    template.authorizationUrl = authorizationUrl;\r\n    var page = template.evaluate();\r\n    SlidesApp.getUi().showModalDialog(page, &quot;Authorize&quot;);\r\n  } else {\r\n    SlidesApp.getUi().alert(&quot;\u3059\u3067\u306b\u8a8d\u8a3c\u6e08\u307f\u3067\u3059\u3002&quot;);\r\n  }\r\n}\r\n\r\n\/\/OAuth2\u30b5\u30fc\u30d3\u30b9\u8a2d\u5b9a\r\nfunction getService() {\r\n  return OAuth2.createService(&quot;Microsoft Graph&quot;)\r\n    .setAuthorizationBaseUrl(&quot;https:\/\/login.microsoftonline.com\/common\/oauth2\/v2.0\/authorize&quot;)\r\n    .setTokenUrl(&quot;https:\/\/login.microsoftonline.com\/common\/oauth2\/v2.0\/token&quot;)\r\n    .setClientId(CLIENT_ID)\r\n    .setClientSecret(CLIENT_SECRET)\r\n    .setScope(scopes)\r\n    .setCallbackFunction(&quot;authCallback&quot;)\r\n    .setPropertyStore(PropertiesService.getUserProperties())\r\n    .setParam(&quot;response_type&quot;, &quot;code&quot;);\r\n}\r\n\r\n\/\/\u8a8d\u8a3c\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\r\nfunction authCallback(request) {\r\n  var service = getService();\r\n  var isAuthorized = service.handleCallback(request);\r\n  if (isAuthorized) {\r\n    return HtmlService.createHtmlOutput(&quot;\u8a8d\u8a3c\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002\u30da\u30fc\u30b8\u3092\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002&quot;);\r\n  } else {\r\n    return HtmlService.createHtmlOutput(&quot;\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002&quot;);\r\n  }\r\n}\r\n\r\n\/\/\u30ed\u30b0\u30a2\u30a6\u30c8\r\nfunction reset() {\r\n  getService().reset();\r\n}\r\n\r\n\/\/\u30e6\u30fc\u30b6\u30fc\u540d\u53d6\u5f97\r\nfunction getUserName() {\r\n  var service = getService();\r\n  if (service.hasAccess()) {\r\n    var url = &quot;https:\/\/graph.microsoft.com\/v1.0\/me&quot;;\r\n    var response = UrlFetchApp.fetch(url, {\r\n      headers: {\r\n        Authorization: &quot;Bearer &quot; + service.getAccessToken()\r\n      },\r\n      method: &quot;GET&quot;,\r\n      contentType: &quot;application\/json&quot;\r\n    });\r\n    var results = JSON.parse(response.getContentText());\r\n    SlidesApp.getUi().alert(&quot;\u30e6\u30fc\u30b6\u30fc\u540d\uff1a&quot; + results&#x5B;&quot;displayName&quot;]);\r\n  } else {\r\n    SlidesApp.getUi().alert(&quot;\u8a8d\u8a3c\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002&quot;);\r\n  }\r\n}\r\n\r\n\/\/Excel\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30b0\u30e9\u30d5\u3092\u53d6\u5f97\u2192\u30b9\u30e9\u30a4\u30c9\u306b\u753b\u50cf\u3068\u3057\u3066\u633f\u5165\r\nfunction insertChartImage() {\r\n  var slide = SlidesApp.getActivePresentation().getSlides()&#x5B;0];\r\n  var service = getService();\r\n  if (service.hasAccess()) {\r\n    \/\/OneDrive\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u3042\u308b\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306eID\u53d6\u5f97\r\n    var fileUrl = endpointUrl + &quot;\/me\/drive\/root\/children\/&quot; + encodeURIComponent(fileName);\r\n    var file = callGraphApi(&quot;GET&quot;, fileUrl);\r\n    var fileId = file&#x5B;&quot;id&quot;];\r\n    \/\/\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u53d6\u5f97\r\n    var sheetsUrl = endpointUrl + &quot;\/me\/drive\/items\/&quot; + fileId + &quot;\/workbook\/worksheets&quot;;\r\n    var sheets = callGraphApi(&quot;GET&quot;, sheetsUrl);\r\n    sheets&#x5B;&quot;value&quot;].forEach(function(sheet) {\r\n      \/\/\u30b0\u30e9\u30d5\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u53d6\u5f97\r\n      var chartsUrl = sheetsUrl + &quot;\/&quot; + sheet&#x5B;&quot;name&quot;] + &quot;\/&quot; + &quot;charts&quot;;\r\n      var charts = callGraphApi(&quot;GET&quot;, chartsUrl);\r\n      if (charts&#x5B;&quot;value&quot;].length &gt; 0) {\r\n        charts&#x5B;&quot;value&quot;].forEach(function(chart) {\r\n          \/\/\u30b0\u30e9\u30d5\u306e\u753b\u50cf\u3092\u53d6\u5f97\r\n          var imageUrl = chartsUrl + &quot;('&quot; + encodeURIComponent(chart&#x5B;&quot;id&quot;]) + &quot;')\/Image&quot;;\r\n          var image = callGraphApi(&quot;GET&quot;, imageUrl);\r\n          insertImageFromBase64(slide, image&#x5B;&quot;value&quot;]);\r\n        });\r\n      }\r\n    });\r\n  } else {\r\n    SlidesApp.getUi().alert(&quot;\u8a8d\u8a3c\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002&quot;);\r\n  }\r\n}\r\n\r\n\/\/Microsoft Graph API\u306e\u547c\u3073\u51fa\u3057\r\nfunction callGraphApi(httpMethod, url) {\r\n  var service = getService();\r\n  if (service.hasAccess()) {\r\n    var response = UrlFetchApp.fetch(url, {\r\n      headers: {\r\n        Authorization: &quot;Bearer &quot; + service.getAccessToken()\r\n      },\r\n      method: httpMethod,\r\n      contentType: &quot;application\/json&quot;\r\n    });\r\n    return JSON.parse(response.getContentText());\r\n  }\r\n}\r\n\r\n\/\/\u753b\u50cf(Base64\u5f62\u5f0f)\u306e\u633f\u5165\r\nfunction insertImageFromBase64(slide, b64) {\r\n  var blob = Utilities.newBlob(Utilities.base64Decode(b64), MimeType.PNG);\r\n  slide.insertImage(blob);\r\n}<\/pre>\n<ol>\n<li>\u307e\u305a\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8a31\u53ef\u3092\u884c\u3046\u70ba\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">authorize<\/span>\u300d\u95a2\u6570\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n<li>\u300c\u627f\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u8a31\u53ef\u3092\u78ba\u8a8d<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_08.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_08.jpg\" alt=\"\" width=\"499\" height=\"204\" class=\"alignnone size-full wp-image-10985\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_08.jpg 499w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_08-300x123.jpg 300w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/a><\/p>\n<li>\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u9078\u629e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u4f7f\u7528\u3059\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_09.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_09.jpg\" alt=\"\" width=\"602\" height=\"560\" class=\"alignnone size-full wp-image-10986\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_09.jpg 602w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_09-300x279.jpg 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<li>\u300c\u3053\u306e\u30a2\u30d7\u30ea\u306f\u78ba\u8a8d\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u300d\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u8a73\u7d30\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\uff08\u5b89\u5168\u3067\u306f\u306a\u3044\u30da\u30fc\u30b8\uff09\u306b\u79fb\u52d5<\/span>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_10.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_10.jpg\" alt=\"\" width=\"602\" height=\"646\" class=\"alignnone size-full wp-image-10987\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_10.jpg 602w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_10-280x300.jpg 280w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<li>\u30a2\u30af\u30bb\u30b9\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u8a31\u53ef<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_11.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_11.jpg\" alt=\"\" width=\"602\" height=\"731\" class=\"alignnone size-full wp-image-10988\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_11.jpg 602w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_11-247x300.jpg 247w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<li>\u30b9\u30e9\u30a4\u30c9\u3092\u8868\u793a\u3059\u308b\u3068\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">authorize<\/span>\u300d\u95a2\u6570\u306b\u3088\u308a\u4f5c\u6210\u3055\u308c\u305f\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u308b\u306e\u3067\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u8a8d\u8a3c\u30da\u30fc\u30b8\u3092\u958b\u304d\u307e\u3059<\/span>\u300d\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_12.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_12.jpg\" alt=\"\" width=\"896\" height=\"662\" class=\"alignnone size-full wp-image-10989\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_12.jpg 896w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_12-300x222.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_12-768x567.jpg 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/a><\/p>\n<li>\u5225\u30bf\u30d6\u3067\u30b5\u30a4\u30f3\u30a4\u30f3\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001Microsoft \u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30b5\u30a4\u30f3\u30a4\u30f3\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_13.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_13.jpg\" alt=\"\" width=\"501\" height=\"384\" class=\"alignnone size-full wp-image-10990\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_13.jpg 501w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_13-300x230.jpg 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/a><\/p>\n<li>\u30a2\u30d7\u30ea\u306e\u8a31\u53ef\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u306f\u3044<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_14.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_14.jpg\" alt=\"\" width=\"471\" height=\"631\" class=\"alignnone size-full wp-image-10991\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_14.jpg 471w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_14-224x300.jpg 224w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/a><\/p>\n<li>\u300c\u8a8d\u8a3c\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002\u30da\u30fc\u30b8\u3092\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u300d\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u8a8d\u8a3c\u6210\u529f\u3067\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_15.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_15.jpg\" alt=\"\" width=\"491\" height=\"178\" class=\"alignnone size-full wp-image-10992\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_15.jpg 491w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_15-300x109.jpg 300w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/a><\/p>\n<li>\u300c<span style=\"color: #ff0000; font-weight: bold;\">API Menu<\/span>\u300d(\u3053\u306e\u30e1\u30cb\u30e5\u30fc\u306f<span style=\"color: #ff0000; font-weight: bold;\">onOpen<\/span>\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u3068\u8ffd\u52a0\u3055\u308c\u307e\u3059)\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30e6\u30fc\u30b6\u30fc\u540d\u53d6\u5f97<\/span>\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001Microsoft \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u304c\u8868\u793a\u3055\u308c\u3001\u7121\u4e8b\u306bGraph API\u3092\u547c\u3073\u51fa\u305b\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_16.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_16.jpg\" alt=\"\" width=\"416\" height=\"164\" class=\"alignnone size-full wp-image-10993\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_16.jpg 416w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_16-300x118.jpg 300w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/a><\/p>\n<li>API Menu\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">Excel API\u547c\u3073\u51fa\u3057<\/span>\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001OneDrive\u306b\u3042\u308bExcel\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30b0\u30e9\u30d5\u3092\u753b\u50cf\u3068\u3057\u3066\u53d6\u5f97\u3057\u3001\u30b9\u30e9\u30a4\u30c9\u306b\u633f\u5165\u3059\u308b\u51e6\u7406\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_17.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_17.jpg\" alt=\"\" width=\"1024\" height=\"770\" class=\"alignnone size-full wp-image-10994\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_17.jpg 1024w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_17-300x226.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_17-768x578.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_18.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_18.jpg\" alt=\"\" width=\"1135\" height=\"855\" class=\"alignnone size-full wp-image-10995\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_18.jpg 1135w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_18-300x226.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_18-768x579.jpg 768w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_18-1024x771.jpg 1024w\" sizes=\"auto, (max-width: 1135px) 100vw, 1135px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_19.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/MicrosoftGraph_from_GAS_19.gif\" alt=\"\" width=\"931\" height=\"715\" class=\"alignnone size-full wp-image-10996\" \/><\/a><\/p>\n<li>\u7121\u4e8b\u306b\u51e6\u7406\u304c\u884c\u308f\u308c\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3089\u3001\u6700\u5f8c\u306fAPI Menu\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30ed\u30b0\u30a2\u30a6\u30c8<\/span>\u300d\u3092\u5b9f\u884c\u3057\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u5207\u65ad\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<h4 class=\"style4a\">\u30b3\u30fc\u30c9\u306e\u89e3\u8aac<\/h4>\n<p>\u4e3b\u8981\u306a\u90e8\u5206\u3060\u3051\u3001\u7c21\u5358\u306b\u30b3\u30fc\u30c9\u306e\u89e3\u8aac\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\/\/OAuth2\u30b5\u30fc\u30d3\u30b9\u8a2d\u5b9a\r\nfunction getService() {\r\n  return OAuth2.createService(&quot;Microsoft Graph&quot;)\r\n    .setAuthorizationBaseUrl(&quot;https:\/\/login.microsoftonline.com\/common\/oauth2\/v2.0\/authorize&quot;)\r\n    .setTokenUrl(&quot;https:\/\/login.microsoftonline.com\/common\/oauth2\/v2.0\/token&quot;)\r\n    .setClientId(CLIENT_ID)\r\n    .setClientSecret(CLIENT_SECRET)\r\n    .setScope(scopes)\r\n    .setCallbackFunction(&quot;authCallback&quot;)\r\n    .setPropertyStore(PropertiesService.getUserProperties())\r\n    .setParam(&quot;response_type&quot;, &quot;code&quot;);\r\n}<\/pre>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30e1\u30a4\u30f3\u3002<br \/>\n\u8a8d\u8a3c\u7528\u306eURL\u3084\u30c8\u30fc\u30af\u30f3\u53d6\u5f97\u7528\u306eURL\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3084\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u9762\u5012\u304f\u3055\u3044\u8a8d\u8a3c\u30fb\u30c8\u30fc\u30af\u30f3\u53d6\u5f97\u51e6\u7406\u3092\u884c\u3063\u3066\u304f\u308c\u307e\u3059(OAuth2 for Apps Script\u30e9\u30a4\u30d6\u30e9\u30ea)\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\/\/\u8a8d\u8a3c\r\nfunction authorize() {\r\n  var service = getService();\r\n  if (!service.hasAccess()) {\r\n    var authorizationUrl = service.getAuthorizationUrl();\r\n    var template = HtmlService.createTemplate('&lt;a href=&quot;&lt;?= authorizationUrl ?&gt;&quot; target=&quot;_blank&quot;&gt;\u8a8d\u8a3c\u30da\u30fc\u30b8\u3092\u958b\u304d\u307e\u3059&lt;\/a&gt;');\r\n    template.authorizationUrl = authorizationUrl;\r\n    var page = template.evaluate();\r\n    SlidesApp.getUi().showModalDialog(page, &quot;Authorize&quot;);\r\n  } else {\r\n    SlidesApp.getUi().alert(&quot;\u3059\u3067\u306b\u8a8d\u8a3c\u6e08\u307f\u3067\u3059\u3002&quot;);\r\n  }\r\n}<\/pre>\n<p>\u30c8\u30fc\u30af\u30f3\u304c\u53d6\u5f97\u3067\u304d\u3066\u3044\u306a\u3044\u72b6\u614b\u3067\u306f\u3001\u307e\u305a\u8a8d\u8a3c\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u8a8d\u8a3c\u7528URL\u306e\u30ea\u30f3\u30af\u3092\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\/\/\u8a8d\u8a3c\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\r\nfunction authCallback(request) {\r\n  var service = getService();\r\n  var isAuthorized = service.handleCallback(request);\r\n  if (isAuthorized) {\r\n    return HtmlService.createHtmlOutput(&quot;\u8a8d\u8a3c\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002\u30da\u30fc\u30b8\u3092\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002&quot;);\r\n  } else {\r\n    return HtmlService.createHtmlOutput(&quot;\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002&quot;);\r\n  }\r\n}<\/pre>\n<p>\u8a8d\u8a3c\u304c\u7d42\u308f\u3063\u305f\u3068\u304d\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3067\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\/\/\u30e6\u30fc\u30b6\u30fc\u540d\u53d6\u5f97\r\nfunction getUserName() {\r\n  var service = getService();\r\n  if (service.hasAccess()) {\r\n    var url = &quot;https:\/\/graph.microsoft.com\/v1.0\/me&quot;;\r\n    var response = UrlFetchApp.fetch(url, {\r\n      headers: {\r\n        Authorization: &quot;Bearer &quot; + service.getAccessToken()\r\n      },\r\n      method: &quot;GET&quot;,\r\n      contentType: &quot;application\/json&quot;\r\n    });\r\n    var results = JSON.parse(response.getContentText());\r\n    SlidesApp.getUi().alert(&quot;\u30e6\u30fc\u30b6\u30fc\u540d\uff1a&quot; + results&#x5B;&quot;displayName&quot;]);\r\n  } else {\r\n    SlidesApp.getUi().alert(&quot;\u8a8d\u8a3c\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002&quot;);\r\n  }\r\n}<\/pre>\n<p>\u5b9f\u969b\u306bGraph API\u306e\u547c\u3073\u51fa\u3057\u3092\u884c\u3046\u30b3\u30fc\u30c9\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/developer.microsoft.com\/ja-jp\/graph\/docs\/api-reference\/v1.0\/api\/user_get\" title=\"\u30e6\u30fc\u30b6\u30fc\u3092\u53d6\u5f97\u3059\u308b - \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 - Microsoft Graph\" target=\"_blank\">\u30e6\u30fc\u30b6\u30fc\u306e\u53d6\u5f97<\/a>\u51e6\u7406\u3092\u884c\u3063\u3066\u3001\u81ea\u5206\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u3067\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>Excel\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30b0\u30e9\u30d5\u3092\u753b\u50cf\u3068\u3057\u3066\u53d6\u5f97\u2192\u30b9\u30e9\u30a4\u30c9\u306b\u633f\u5165\u3092\u884c\u3046\u300c<span style=\"color: #ff0000; font-weight: bold;\">insertChartImage<\/span>\u300d\u95a2\u6570\u3067\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u6d41\u308c\u3067\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li>OneDrive\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u3042\u308b\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306eID\u53d6\u5f97<\/li>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">https:\/\/graph.microsoft.com\/v1.0\/me\/drive\/root\/children\/{\u30d5\u30a1\u30a4\u30eb\u540d}<\/pre>\n<li>\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u53d6\u5f97<\/li>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">https:\/\/graph.microsoft.com\/v1.0\/me\/drive\/items\/{\u30d5\u30a1\u30a4\u30ebID}\/workbook\/worksheets<\/pre>\n<li>\u30b0\u30e9\u30d5\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u53d6\u5f97<\/li>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">https:\/\/graph.microsoft.com\/v1.0\/me\/drive\/items\/{\u30d5\u30a1\u30a4\u30ebID}\/workbook\/worksheets\/{\u30b7\u30fc\u30c8\u540d}\/charts<\/pre>\n<li>\u30b0\u30e9\u30d5\u306e\u753b\u50cf\u3092Base64\u5f62\u5f0f\u3067\u53d6\u5f97<\/li>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">https:\/\/graph.microsoft.com\/v1.0\/me\/drive\/items\/{\u30d5\u30a1\u30a4\u30ebID}\/workbook\/worksheets\/{\u30b7\u30fc\u30c8\u540d}\/charts\/({\u30b0\u30e9\u30d5ID})\/Image<\/pre>\n<li>Base64\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u304b\u3089Blob\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u753b\u50cf\u3068\u3057\u3066\u30b9\u30e9\u30a4\u30c9\u306b\u633f\u5165<\/li>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\/\/\u753b\u50cf(Base64\u5f62\u5f0f)\u306e\u633f\u5165\r\nfunction insertImageFromBase64(slide, b64) {\r\n  var blob = Utilities.newBlob(Utilities.base64Decode(b64), MimeType.PNG);\r\n  slide.insertImage(blob);\r\n}<\/pre>\n<\/ol>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n<h4 class=\"style4a\">\u304a\u308f\u308a\u306b<\/h4>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u3001Graph API\u306b\u3088\u3063\u3066GAS\u3068Microsoft\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u9023\u643a\u304c\u3068\u308c\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u306f\u30013\u5e74\u307b\u3069\u524d\u306b\u3082GAS\u3068Outlook\u306e\u9023\u643a\u306b\u3064\u3044\u3066\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u3068\u304d\u306f<span style=\"color: #ff0000; font-weight: bold;\">OAuth2 for Apps Script<\/span>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5b58\u5728\u3092\u77e5\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u975e\u5e38\u306b\u5197\u9577\u306a\u51e6\u7406\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=5802\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Office365-120x120.png' alt='[Google Apps Script]Office 365 unified API\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u3002' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2015.07.02<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=5802\">[Google Apps Script]Office 365 unified API\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u3002 <\/a><\/div><div class=\"cardlink_excerpt\">\u4e45\u3057\u3076\u308a\u306eGoogle Apps Script\u30cd\u30bf\u3067\u3059\u3002\r\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\r\n\r\n\r\n\u4e0b\u6e96\u5099\r\n\r\n\r\n\u300c[Google Apps Scri...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n<p>\u3084\u306f\u308a\u3001\u5c02\u7528\u306b\u4f5c\u3089\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u529b\u306f\u30b9\u30b4\u30a4\u3067\u3059\u306d\uff01<br \/>\nOAuth\u5468\u308a\u306e\u51e6\u7406\u3067\u306f\u3001\u6700\u65e9\u5fc5\u9808\u3068\u3082\u8a00\u3048\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<\/p>\n<p>Graph\u306f\u3001\u4eca\u56de\u53d6\u308a\u4e0a\u3052\u305fExcel\u3068\u306e\u9023\u643a\u4ee5\u5916\u306b\u3082\u3001\u69d8\u3005\u306a\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u9023\u643a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001GAS\u304b\u3089\u306e\u5229\u7528\u306b\u9650\u3089\u305a\u3001\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u662f\u975e\u5b9f\u88c5\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<h4 class=\"style4a\">\u53c2\u8003Web\u30b5\u30a4\u30c8<\/h4>\n<ul>\n<li>Show data from GitHub&#8217;s API in Google Sheets, with Apps Script &#038; Oauth<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/www.benlcollins.com\/apps-script\/oauth-github\/\" target=\"_blank\" title=\"Show data from GitHub's API in Google Sheets, with Apps Script &#038; Oauth\">https:\/\/www.benlcollins.com\/apps-script\/oauth-github\/<\/a><\/li>\n<li>\u3010freee API\u3011GAS\u3092\u7528\u3044\u3066Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3068\u9023\u643a\u3059\u308b<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/support.freee.co.jp\/hc\/ja\/articles\/115005287286--freee-API-GAS%E3%82%92%E7%94%A8%E3%81%84%E3%81%A6Google%E3%82%B9%E3%83%97%E3%83%AC%E3%83%83%E3%83%89%E3%82%B7%E3%83%BC%E3%83%88%E3%81%A8%E9%80%A3%E6%90%BA%E3%81%99%E3%82%8B\" target=\"_blank\" title=\"\u3010freee API\u3011GAS\u3092\u7528\u3044\u3066Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3068\u9023\u643a\u3059\u308b\">https:\/\/support.freee.co.jp\/hc\/ja\/articles\/115005287286&#8211;freee-API-GAS%E3%82%92%E7%94%A8%E3%81%84%E3%81%A6Google%E3%82%B9%E3%83%97%E3%83%AC%E3%83%83%E3%83%89%E3%82%B7%E3%83%BC%E3%83%88%E3%81%A8%E9%80%A3%E6%90%BA%E3%81%99%E3%82%8B<\/a><\/li>\n<li>GoogleAppsScript\u3067Slack OAuth2\u8a8d\u8a3c<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/qiita.com\/koki_cheese\/items\/6ddf58858331c70d919c\" target=\"_blank\" title=\"GoogleAppsScript\u3067Slack OAuth2\u8a8d\u8a3c\">https:\/\/qiita.com\/koki_cheese\/items\/6ddf58858331c70d919c<\/a><\/li>\n<li>Microsoft Graph \u306e\u6982\u8981<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developer.microsoft.com\/ja-jp\/graph\/docs\/concepts\/overview\" target=\"_blank\" title=\"Microsoft Graph \u306e\u6982\u8981\">https:\/\/developer.microsoft.com\/ja-jp\/graph\/docs\/concepts\/overview<\/a><\/li>\n<li>Microsoft Graph \u304a\u3088\u3073 REST \u5165\u9580<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developer.microsoft.com\/ja-jp\/graph\/docs\/concepts\/rest\" target=\"_blank\" title=\"Microsoft Graph \u304a\u3088\u3073 REST \u5165\u9580\">https:\/\/developer.microsoft.com\/ja-jp\/graph\/docs\/concepts\/rest<\/a><\/li>\n<li>Microsoft Graph \u3067\u306e Excel \u306e\u64cd\u4f5c<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developer.microsoft.com\/ja-jp\/graph\/docs\/api-reference\/v1.0\/resources\/excel\" target=\"_blank\" title=\"Microsoft Graph \u3067\u306e Excel \u306e\u64cd\u4f5c\">https:\/\/developer.microsoft.com\/ja-jp\/graph\/docs\/api-reference\/v1.0\/resources\/excel<\/a><\/li>\n<li>Graph \u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc &#8211; Microsoft Graph<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developer.microsoft.com\/ja-jp\/graph\/graph-explorer\" target=\"_blank\" title=\"Graph \u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc - Microsoft Graph\">https:\/\/developer.microsoft.com\/ja-jp\/graph\/graph-explorer<\/a><\/li>\n<li>OAuth2 for Apps Script<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/github.com\/gsuitedevs\/apps-script-oauth2\" target=\"_blank\" title=\"OAuth2 for Apps Script\">https:\/\/github.com\/gsuitedevs\/apps-script-oauth2<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"Microsoft Graph API\u3092\u4f7f\u3063\u3066\u3001OneDrive\u306b\u3042\u308bExcel\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30b0\u30e9\u30d5\u3092\u753b\u50cf\u3068\u3057\u3066\u53d6\u5f97\u3057\u3001Google \u30b9\u30e9\u30a4\u30c9\u306b\u633f\u5165\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 \u300c\u3010\u30a8\u30f3\u30b8\u30cb\u30a2\u4ea4\u6d41\u4f1a\u3011Google Ap [&hellip;]","protected":false},"author":1,"featured_media":7113,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[[Google Apps Script]Microsoft Graph API\u3092\u4f7f\u3063\u3066Microsoft\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u9023\u643a\u3059\u308b\u65b9\u6cd5]","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,126],"tags":[],"class_list":["post-10977","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-google"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Google.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-2R3","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10977","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=10977"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10977\/revisions"}],"predecessor-version":[{"id":10998,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10977\/revisions\/10998"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7113"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}