{"id":6591,"date":"2024-03-11T10:32:17","date_gmt":"2024-03-11T01:32:17","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=6591"},"modified":"2024-03-16T09:19:11","modified_gmt":"2024-03-16T00:19:11","slug":"google-workspace-%e3%81%ab-api-%e3%81%a7%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/6591","title":{"rendered":"Google Workspace \u306b API \u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8 (Google Sheets) \u3092\u4f8b\u306b\u3057\u3066\u8aac\u660e<\/p>\n<h2>1. \u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/h2>\n<p><a href=\"https:\/\/console.cloud.google.com\/apis\/library\/sheets.googleapis.com\">Google Sheets API<\/a><\/p>\n<h3>\u5229\u70b9<\/h3>\n<ul>\n<li>\uff08GAS\u3068\u6bd4\u8f03\u3057\u3066\uff09\u30b5\u30fc\u30d3\u30b9\u306e\u5229\u7528\u5236\u9650\u304c\u7de9\u3044\u3002<\/li>\n<\/ul>\n<h3>\u6b20\u70b9<\/h3>\n<ul>\n<li>\u8a8d\u8a3c(OAUTH2.0\u306e\u30c8\u30fc\u30af\u30f3\u306e\u53d6\u308a\u6271\u3044)\u304c\u9762\u5012\u3067\u3042\u308b\u3002<\/li>\n<li>\uff08\u30c7\u30d0\u30c3\u30b0\u306e\u3068\u304d\u306e\uff09CORS(Cross-Origin Resource Sharing)\u306e\u56de\u907f\u304c\u96e3\u3057\u3044\u3002<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h2>2. GAS (Google Apps Script) \u7d4c\u7531\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/h2>\n<h3>\u5229\u70b9<\/h3>\n<ul>\n<li>\u30b5\u30fc\u30d0\u30fb\u30b9\u30af\u30ea\u30d7\u30c8(GAS)\u306e\u8a8d\u8a3c\u3055\u3048\u89e3\u6c7a\u3059\u308c\u3070\uff08\u30c8\u30fc\u30af\u30f3\u306f\u4e0d\u8981\u3067\u3042\u308b\u305f\u3081\uff09\u7c21\u5358\u3067\u3042\u308b\u3002<\/li>\n<\/ul>\n<h3>\u6b20\u70b9<\/h3>\n<ul>\n<li>\uff11\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u6642\u9593\uff16\u5206\u4ee5\u5185\u3002<\/li>\n<li>\uff11\u30e6\u30fc\u30b6\u306e\uff11\u30b9\u30af\u30ea\u30d7\u30c8\u306e \u30c8\u30ea\u30ac\u30fc\u304c 20\u500b \u4ee5\u4e0b<\/li>\n<li>&#8230; \u306a\u3069<\/li>\n<\/ul>\n<h3>2.1. \u30b3\u30f3\u30c6\u30ca\u30d0\u30a4\u30f3\u30c9\u578b<\/h3>\n<ul>\n<li>Google Drive\u4e0a\u306eGoogle\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u3084Google\u30d5\u30a9\u30fc\u30e0\u306b\u30b9\u30af\u30ea\u30d7\u30c8(\u301c.gs)\u3092\u57cb\u3081\u8fbc\u3080\u3002<\/li>\n<li>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u958b\u304f\u65b9\u6cd5 : <strong>\u62e1\u5f35\u6a5f\u80fd<\/strong> &rArr; <strong>Apps Script<\/strong><\/li>\n<li>GAS\u304c\u57cb\u3081\u8fbc\u307e\u308c\u305f\u30b3\u30f3\u30c6\u30ca\uff08\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306a\u3069\uff09\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3068\u3001\u4e2d\u306b\u542b\u307e\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3082\u30b3\u30d4\u30fc\u3055\u308c\u308b\u3002<\/li>\n<li>\u8907\u6570\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u6a2a\u65ad\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3002\u305f\u3068\u3048\u3070Google\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306b\u57cb\u3081\u8fbc\u307e\u308c\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089Gmail\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3042\u308b\u3002<\/li>\n<\/ul>\n<h3>2.2. \u30b9\u30bf\u30f3\u30c9\u30d0\u30a4\u30f3\u30c9\u578b<\/h3>\n<ul>\n<li>Google Drive\u4e0a\u306b\u30b9\u30af\u30ea\u30d7\u30c8\uff08\u301c.gs\uff09\u3092\u72ec\u7acb\u306b\u914d\u7f6e\u3059\u308b\u3002<\/li>\n<li>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u958b\u304f\u65b9\u6cd5 : Google Drive \u304b\u3089\u958b\u304f\u3002<\/li>\n<li>\u8907\u6570\u306e\u30b5\u30fc\u30d3\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3002\u30b3\u30f3\u30c6\u30ca\u30d0\u30f3\u30c9\u578b\u306b\u3057\u306a\u304f\u3066\u3082Google\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u66f8\u304d\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8 (Google Sheets) \u3092\u4f8b\u306b\u3057\u3066\u8aac\u660e 1. \u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3059\u308b Google Sheets API \u5229\u70b9 \uff08GAS\u3068\u6bd4\u8f03\u3057\u3066\uff09\u30b5\u30fc\u30d3\u30b9\u306e\u5229\u7528\u5236\u9650\u304c\u7de9\u3044\u3002 \u6b20\u70b9 \u8a8d\u8a3c(OAUTH2.0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[130],"class_list":["post-6591","post","type-post","status-publish","format-standard","hentry","category-memo","tag-gas"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/6591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=6591"}],"version-history":[{"count":13,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/6591\/revisions"}],"predecessor-version":[{"id":6622,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/6591\/revisions\/6622"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=6591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=6591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=6591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}