{"id":3510,"date":"2024-12-11T12:59:30","date_gmt":"2024-12-11T03:59:30","guid":{"rendered":"https:\/\/www.y-ml.com\/column\/?p=3510"},"modified":"2024-12-10T14:48:00","modified_gmt":"2024-12-10T05:48:00","slug":"api%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6%e3%81%95%e3%82%89%e3%81%ab%e3%83%a1%e3%83%bc%e3%83%ab%e9%85%8d%e4%bf%a1%e6%a5%ad%e5%8b%99%e3%81%ae%e8%87%aa%e5%8b%95%e5%8c%96%e3%82%92%e4%bf%83","status":"publish","type":"post","link":"https:\/\/www.y-ml.com\/column\/archives\/3510","title":{"rendered":"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046"},"content":{"rendered":"<p>\u672c\u65e5\u3082\u3001\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u300c<a href=\"https:\/\/www.y-ml.com\/\" target=\"_blank\" rel=\"noopener\">\u30ef\u30a4\u30e1\u30fc\u30eb<\/a>\u300d\u306e\u516c\u5f0f\u30b3\u30e9\u30e0\u3092\u3054\u89a7\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.y-ml.com\/column\/archives\/3152\" target=\"_blank\" rel=\"noopener\">\u4ee5\u524d\u306e\u30b3\u30e9\u30e0<\/a>\u3067\u3001\u30ef\u30a4\u30e1\u30fc\u30eb\u304c\u516c\u958b\u3057\u3066\u3044\u308bAPI\u306b\u3064\u3044\u3066\u3001\u7c21\u5358\u306b\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u969b\u306f\u3001\u4e3b\u306bAPI\u306e\u6982\u5ff5\u3084\u3001\u30ef\u30a4\u30e1\u30fc\u30eb\u3067\u5229\u7528\u53ef\u80fd\u306a\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3001\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u7d39\u4ecb\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001API\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u3088\u308a\u5177\u4f53\u7684\u306b\u3069\u306e\u3088\u3046\u306a\u5b09\u3057\u3044\u3053\u3068\u304c\u8d77\u304d\u308b\u306e\u304b\u3001\u4f8b\u3092\u7528\u3044\u3066\u5b9f\u8df5\u306b\u5373\u3057\u305f\u5f62\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001\u307e\u3060API\u304c\u3069\u306e\u3088\u3046\u306a\u3082\u306e\u304b\u30a4\u30e1\u30fc\u30b8\u3067\u304d\u306a\u3044\u65b9\u306f\u3001\u4e00\u5ea6\u4ee5\u4e0b\u3092\u3054\u4e00\u8aad\u3044\u305f\u3060\u304d\u3001\u672c\u8a18\u4e8b\u306b\u623b\u3063\u3066\u304d\u3066\u3082\u3089\u3046\u3068\u3001\u3088\u308a\u7406\u89e3\u304c\u6df1\u307e\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\uff1c<a href=\"https:\/\/www.y-ml.com\/column\/archives\/3152\" target=\"_blank\" rel=\"noopener\">Web API\u3068\u306f\uff1f \u301c\u30ef\u30a4\u30e1\u30fc\u30eb\u3092\u3082\u3063\u3068\u4fbf\u5229\u306b\u4f7f\u3046\u305f\u3081\u306b\u301c<\/a>\uff1e<\/p>\n<p>\u306a\u304a\u4ee5\u4e0b\u306b\u7d39\u4ecb\u3059\u308b\u4f8b\u306b\u304a\u3044\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u77e5\u8b58\u3092\u524d\u63d0\u3068\u3057\u3066\u66f8\u3044\u3066\u3044\u308b\u7b87\u6240\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u306e\u3067\u3001IT\u62c5\u5f53\u8005\u4ee5\u5916\u306e\u65b9\u306f\u300c\u3068\u308a\u3042\u3048\u305a\u3053\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u300d\u3068\u8a8d\u8b58\u3057\u3066\u3044\u305f\u3060\u304d\u3001\u6280\u8853\u7684\u306a\u3068\u3053\u308d\u306fIT\u62c5\u5f53\u8005\u306e\u65b9\u306b\u8aad\u3093\u3067\u3044\u305f\u3060\u304f\u304b\u3001\u4e00\u7dd2\u306b\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u305f\u3089\u52b9\u7387\u7684\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>API\u306e\u5229\u7528\u4f8b<\/h2>\n<h3>\u5229\u7528\u4f8b 1.\u00a0 \u5916\u90e8\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u30ef\u30a4\u30e1\u30fc\u30eb\u306b\u8aad\u8005\u3092\u81ea\u52d5\u767b\u9332<\/h3>\n<p><strong>\u73fe\u72b6\u306e\u904b\u7528<\/strong><\/p>\n<p>\u81ea\u793e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u72ec\u81ea\u306b\u8a2d\u7f6e\u3057\u305f\u4f1a\u54e1\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u3067\u4f1a\u54e1\u60c5\u5831\u3092\u53ce\u96c6\u3057\u3001\u305d\u308c\u3089\u3092\u5f8c\u65e5\u624b\u52d5\u3067\u30ef\u30a4\u30e1\u30fc\u30eb\u306b\u4ee3\u7406\u767b\u9332\u3057\u3001\u30e1\u30fc\u30eb\u914d\u4fe1\u3092\u884c\u3063\u3066\u3044\u308b\u72b6\u6cc1\u3092\u60f3\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u6539\u5584\u6848<\/strong><\/p>\n<p>API\u3092\u5229\u7528\u3057\u3001\u4f1a\u54e1\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u3067\u767b\u9332\u3055\u308c\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u3001\u81ea\u52d5\u3067\u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u8aad\u8005\u30ea\u30b9\u30c8\u306b\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306e\u6e96\u5099<\/h4>\n<p>\u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u300c\u5171\u901a\u8a2d\u5b9a\u300d\u2192\u300cAPI\u8a2d\u5b9a\u300d\u3092\u958b\u304d\u3001\u300c\u65b0\u3057\u3044\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u4f5c\u6210\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3524 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021424.png\" alt=\"\" width=\"928\" height=\"675\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021424.png 928w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021424-300x218.png 300w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021424-768x559.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><br \/>\n<span style=\"font-size: 0.8rem;\">\u203b\u3059\u3067\u306b\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u3001\u57fa\u672c\u7684\u306b\u306f\u3001\u6539\u3081\u3066\u4f5c\u308a\u76f4\u3059\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u90fd\u5408\u3084\u3001API\u306e\u5ec3\u6b62\u306b\u4f34\u3044\u3001\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u524a\u9664\u3059\u308b\u3068\u65e2\u5b58\u306eAPI\u6a5f\u80fd\u304c\u7121\u52b9\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u614e\u91cd\u306a\u53d6\u308a\u6271\u3044\u3092\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/05\/arrow.jpg\" \/><\/p>\n<p>\u4efb\u610f\u306e\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306e\u540d\u524d\u3092\u5165\u529b\u3057\u300c\u4fdd\u5b58\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u4f8b\u3068\u3057\u3066\u300capi-test\u300d\u3068\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3525 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021524.png\" alt=\"\" width=\"747\" height=\"189\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021524.png 747w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021524-300x76.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/05\/arrow.jpg\" \/><\/p>\n<p>\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3001API Key ID\u3068API Secret Key\u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u63a7\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3526 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021757.png\" alt=\"\" width=\"750\" height=\"173\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021757.png 750w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021757-300x69.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/05\/arrow.jpg\" \/><br \/>\n\u300cAPI\u8a2d\u5b9a\u300d\u306e\u753b\u9762\u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n<h4>Json\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h4>\n<p>\u3053\u308c\u306f\u5fc5\u9808\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u9001\u51fa\u30d1\u30e9\u30e1\u30bf\u69cb\u7bc9\u6642\u306e\u53c2\u8003\u3068\u3057\u3066\u3001\u3072\u306a\u578b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u300cAPI\u8a2d\u5b9a\u300d\u306e\u300c\u8aad\u8005API\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u3042\u308b\u300cadd-user\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fJson\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3527 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_022006.png\" alt=\"\" width=\"752\" height=\"209\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_022006.png 752w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_022006-300x83.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/05\/arrow.jpg\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3528 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_022219.png\" alt=\"\" width=\"625\" height=\"241\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_022219.png 625w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_022219-300x116.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<h4>API\u3092\u547c\u3073\u51fa\u3059<\/h4>\n<p>\u4f1a\u54e1\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u3092\u8a2d\u7f6e\u3057\u3066\u3044\u308b\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u5074\u3067\u3001API\u3092\u5229\u7528\u3059\u308b\u51e6\u7406\u3092\u66f8\u304d\u307e\u3059\u3002API\u5229\u7528\u6642\u306e\u5927\u307e\u304b\u306a\u6d41\u308c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30ea\u30af\u30a8\u30b9\u30c8\u30c7\u30fc\u30bf\u3068API Secret Key\u304b\u3089\u7f72\u540d\u3092\u751f\u6210<\/li>\n<li>\u30ea\u30af\u30a8\u30b9\u30c8\u30c7\u30fc\u30bf\u3001API Key ID\u3001\u7f72\u540d\u3092\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u5bfe\u3057\u3066\u306bAPI\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u51fa<\/li>\n<li>\u8fd4\u5374\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u5224\u5b9a\u30fb\u51fa\u529b\u306a\u3069\u3092\u884c\u3046<\/li>\n<\/ol>\n<p>\u8a73\u7d30\u306a\u624b\u9806\u306f\u3001<a href=\"https:\/\/www.y-ml.com\/api-reference\/\" target=\"_blank\" rel=\"noopener\">\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001javascript\u3092\u5229\u7528\u3057\u305f\u547c\u3073\u51fa\u3057\u65b9\u6cd5\u306e\u4e00\u4f8b\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u30b3\u30fc\u30c9\u306fSecret Key ID\u306a\u3069\u306e\u79d8\u533f\u60c5\u5831\u3092\u542b\u3080\u305f\u3081\u3001\u30d6\u30e9\u30a6\u30b6\u304cJavascript\u3092\u76f4\u63a5\u5b9f\u884c\u3067\u304d\u308b\u74b0\u5883\u306b\u30b3\u30fc\u30c9\u914d\u7f6e\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u7b2c\u4e09\u8005\u304c\u95b2\u89a7\u53ef\u80fd\u3068\u306a\u308a\u8aad\u8005\u60c5\u5831\u306e\u6d41\u51fa\u3084\u6539\u3056\u3093\u306b\u7e4b\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001\u5fc5\u305a\u5916\u90e8\u516c\u958b\u3057\u3066\u3044\u306a\u3044\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u4e0a\u304b\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u3042\u308c\u3070node.js\u4e0a\u306a\u3069\u306eJavascript\u5b9f\u884c\u74b0\u5883\u306b\u914d\u7f6e\u3057\u3001\u7b2c\u4e09\u8005\u304c\u30b3\u30fc\u30c9\u3092\u8a8d\u8b58\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-title=\"\">const ymladd_result = await this.ymlAddUser();\r\nif(ymladd_result == &#039;ok&#039;){\r\n  try {\r\n    console.log(&#039;\u8aad\u8005\u767b\u9332\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002&#039;);\r\n  }\r\n  catch(err){\r\n    console.log(&#039;\u8aad\u8005\u767b\u9332\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002&#039;);\r\n  }\r\n}\r\nelse{\r\n  console.log(&#039;\u8aad\u8005\u767b\u9332\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002&#039;);\r\n}\r\n\r\nasync function ymladdUser(){\r\n  \/\/ \u5b9a\u6570\u5b9a\u7fa9\r\n  let result;\r\n  const api_fqdn = &#039;my-ymail.com&#039;; \/\/ \u30ef\u30a4\u30e1\u30fc\u30eb\u3067\u5229\u7528\u3057\u3066\u3044\u308b\u30c9\u30e1\u30a4\u30f3\u540d\r\n  const method = &#039;POST&#039;;\r\n  const secret_key = &#039;********&#039;; \/\/ \u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u4f5c\u6210\u6642\u306b\u751f\u6210\u3055\u308c\u305f\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\r\n  let api_url = &#039;https:\/\/&#039;+ api_fqdn + &#039;\/api\/rest\/v1\/add-user\/&#039;; \/\/ \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\r\n  var array={\r\n    &quot;apikeyid&quot;: &quot;1234567890abcdef&quot;,\r\n    &quot;id&quot;  \u3000  : &quot;test&quot;,\r\n    &quot;name&quot; \u3000 : &quot;\u5c71\u7530 \u82b1\u5b50&quot;,\r\n    &quot;email&quot; \u3000: &quot;hanako-yamada@example.jp&quot;,\r\n  };\r\n  \/\/ \u7f72\u540d\u3092\u4f5c\u6210\r\n  let query_word = &#039;&#039;;\r\n  for (let [key, value] of Object.entries(array)) {\r\n    query_word += &#039;&amp;&#039; + key + &#039;=&#039; + encodeURIComponent(value);\r\n  }\r\n  query_word = query_word.slice(1);\r\n  let sign_word = method + &quot;\\n&quot; +api_fqdn + &quot;\\n&quot; + end_point + &quot;\\n&quot; + query_word;\r\n  const crypto = require(&#039;crypto&#039;);\r\n  let b64\u3000 = crypto.createHmac(&#039;sha256&#039;, secret_key).update(sign_word).digest(&#039;base64&#039;);\r\n  let e_b64 = encodeURIComponent(b64);\r\n\u3000\/\/ API\u547c\u3073\u51fa\u3057\r\n  var params = new URLSearchParams();\r\n  for (key in array){\r\n    params.append(key, array[key]);\r\n  }\r\n  params.append(&#039;signature&#039;, e_b64);\r\n  const axios = require(&quot;axios&quot;).default;\r\n  try {\r\n    let response = await axios.post(api_url, params.toString(),{\r\n      headers: {\r\n        &#039;Content-Type&#039;: &#039;application\/x-www-form-urlencoded;charset=UTF-8&#039;\r\n      }\r\n    });\r\n    \/\/ \u6210\u529f\u3057\u305f\u5834\u5408\r\n    if(response.data &amp;&amp; !response.data.errors){\r\n      result = &#039;ok&#039;;\r\n    }\r\n    \/\/ \u5931\u6557\u3057\u305f\u5834\u5408\r\n    else{\r\n      result = &#039;ng&#039;;\r\n    }\r\n  }\r\n  catch (err) {\r\n    result = &#039;ng&#039;;\r\n  };\r\n  \/\/ \u7d50\u679c\u8fd4\u5374\r\n  return result;\r\n}\r\n<\/pre>\n<p><span style=\"font-size: 0.8rem;\">\u203b\u5909\u6570\u540d\u306f\u3042\u304f\u307e\u3067\u4f8b\u3067\u3059\u3002\u304a\u5ba2\u69d8\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u5408\u308f\u305b\u3066\u9069\u5b9c\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<h4>\u30c6\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>\u5b9f\u969b\u306b\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u767b\u9332\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3044\u3001\u76ee\u7684\u306e\u30e1\u30eb\u30de\u30ac\u306b\u8aad\u8005\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3529 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_022639.png\" alt=\"\" width=\"683\" height=\"366\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_022639.png 683w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_022639-300x161.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><br \/>\n<img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/05\/arrow.jpg\" \/><br \/>\nAPI\u304b\u3089\u767b\u9332\u304c\u884c\u308f\u308c\u305f\u5834\u5408\u3001\u8aad\u8005\u306e\u300c\u7372\u5f97\u300d\u306b\u306f\u300cAPI\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3530 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023017.png\" alt=\"\" width=\"821\" height=\"229\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023017.png 821w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023017-300x84.png 300w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023017-768x214.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u307e\u305f\u3001\u8aad\u8005\u306e\u8a73\u7d30\u60c5\u5831\u3092\u958b\u304d\u3001\u53f3\u4e0a\u306e\u6700\u7d42\u66f4\u65b0\u60c5\u5831\u304c\u3001\u300c\u6700\u7d42\u66f4\u65b0 YYYY-MM-DD \/ API &#8220;\u4f5c\u6210\u3057\u305f\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306eAPI Key ID&#8221;\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3531 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023124.png\" alt=\"\" width=\"819\" height=\"154\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023124.png 819w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023124-300x56.png 300w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023124-768x144.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<h3>\u5229\u7528\u4f8b 2.\u00a0 \u5916\u90e8\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u4f1a\u54e1\u60c5\u5831\u3092\u66f4\u65b0\u3059\u308b<\/h3>\n<p><strong>\u73fe\u72b6\u306e\u904b\u7528<\/strong><\/p>\n<p><a href=\"https:\/\/www.y-ml.com\/help\/create-article\/322-how-to-set-reminder-mail.html\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8<\/a>\u3067\u3054\u7d39\u4ecb\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u3001\u8aad\u8005\u60c5\u5831\u306b\u65e5\u4ed8\u578b\u306e\u81ea\u7531\u9805\u76ee\u3067\u3042\u308b\u300c\u5951\u7d04\u671f\u9650\u300d\u3092\u767b\u9332\u3057\u3001\u30eb\u30fc\u30d7\u30e1\u30fc\u30eb\u3092\u904b\u7528\u3057\u3066\u3044\u308b\u3082\u306e\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u306a\u308f\u3061\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30eb\u30fc\u30d7\u30e1\u30fc\u30eb\u3092\u7a3c\u50cd\u3055\u305b\u3066\u3044\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002<\/p>\n<ul style=\"margin-left: 2rem;\">\n<li>\u4ef6\u540d\uff1a%%NAME%%\u69d8 \u3054\u5951\u7d04\u66f4\u65b0\u306e\u3054\u6848\u5185\uff081\u304b\u6708\u524d\uff09<\/li>\n<li>\u914d\u4fe1\u30d5\u30a3\u30eb\u30bf\u306e\u5185\u5bb9\uff1a\u300c\u5951\u7d04\u671f\u9650(\u81ea\u7531\u9805\u76ee)\u300d\u304c\u300c\u4eca\u6708\u300d<\/li>\n<\/ul>\n<p>\u3053\u306e\u72b6\u614b\u3067\u3001\u3042\u308b\u8aad\u8005\u306e\u300c\u5951\u7d04\u671f\u9650\u300d\u304c\u300c2024-12-31\u300d\u3067\u3042\u308c\u3070\u30012024\u5e74\u306e12\u67081\u65e5\u306b\u3001\u3053\u306e\u66f4\u65b0\u6848\u5185\u30e1\u30fc\u30eb\u304c\u81ea\u52d5\u7684\u306b\u914d\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3053\u306e\u8aad\u8005\u304c\u5951\u7d04\u66f4\u65b0\u3092\u884c\u3063\u305f\u5834\u5408\u3001\u300c\u5951\u7d04\u671f\u9650\u300d\u3092\u300c2025-06-30\u300d\u306b\u4fee\u6b63\u3059\u308b\u3053\u3068\u3067\u30012025\u5e74\u306e6\u67081\u65e5\u306b\u3001\u540c\u3058\u30e1\u30fc\u30eb\u304c\u81ea\u52d5\u914d\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><strong>\u6539\u5584\u6848<\/strong><\/p>\n<p>\u8aad\u8005\u306e\u5951\u7d04\u66f4\u65b0\u306f\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u5074\u3067\u884c\u308f\u308c\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u5074\u3067\u3001\u4f1a\u54e1\u306e\u5951\u7d04\u671f\u9650\u304c\u66f4\u65b0\u3055\u308c\u305f\u3068\u304d\u306b\u3001API\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u3053\u306e\u8aad\u8005\u306e\u300c\u5951\u7d04\u671f\u9650\u300d\u304c\u81ea\u52d5\u66f4\u65b0\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306e\u6e96\u5099<\/h4>\n<p>\u5229\u7528\u4f8b1.\u3068\u5168\u304f\u540c\u69d8\u306e\u624b\u9806\u3067\u3059\u3002\u5229\u7528\u4f8b1.\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4>Json\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h4>\n<p>\u3053\u308c\u306f\u5fc5\u9808\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u9001\u51fa\u30d1\u30e9\u30e1\u30bf\u69cb\u7bc9\u6642\u306e\u53c2\u8003\u3068\u3057\u3066\u3001\u3072\u306a\u578b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u300cAPI\u8a2d\u5b9a\u300d\u306e\u300c\u8aad\u8005API\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u3042\u308b\u300cget-user\u300d\u30dc\u30bf\u30f3\u3068\u300cupdate-user\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fJson\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3532 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023310.png\" alt=\"\" width=\"829\" height=\"218\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023310.png 829w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023310-300x79.png 300w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023310-768x202.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/05\/arrow.jpg\" \/><\/p>\n<p>\u30fbget-user_id.json<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3533 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023359.png\" alt=\"\" width=\"403\" height=\"132\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023359.png 403w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023359-300x98.png 300w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/p>\n<p>\u30fbupdate-user_id.json<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3534 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023433.png\" alt=\"\" width=\"497\" height=\"213\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023433.png 497w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023433-300x129.png 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/p>\n<h4>API\u3092\u547c\u3073\u51fa\u3059<\/h4>\n<p>\u4f1a\u54e1\u306e\u5951\u7d04\u66f4\u65b0\u51e6\u7406\u3092\u884c\u3046\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u5074\u3067\u3001API\u3092\u5229\u7528\u3059\u308b\u51e6\u7406\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>API\u5229\u7528\u6642\u306e\u5927\u307e\u304b\u306a\u6d41\u308c\u306f\u3001\u5229\u7528\u4f8b1.\u3068\u540c\u69d8\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306e\u5834\u5408\u306f\u300c\u8aad\u8005\u60c5\u5831\u306e\u53d6\u5f97\u300d\u3068\u300c\u8aad\u8005\u60c5\u5831\u306e\u66f4\u65b0\u300d\u3067\u8a082\u56de\u3001API\u3092\u547c\u3073\u51fa\u3059\u5fc5\u8981\u304c\u3042\u308b\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001javascript\u3092\u5229\u7528\u3057\u305f\u547c\u3073\u51fa\u3057\u65b9\u6cd5\u306e\u4e00\u4f8b\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u30b3\u30fc\u30c9\u306fSecret Key ID\u306a\u3069\u306e\u79d8\u533f\u60c5\u5831\u3092\u542b\u3080\u305f\u3081\u3001\u30d6\u30e9\u30a6\u30b6\u304cJavascript\u3092\u76f4\u63a5\u5b9f\u884c\u3067\u304d\u308b\u74b0\u5883\u306b\u30b3\u30fc\u30c9\u914d\u7f6e\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u7b2c\u4e09\u8005\u304c\u95b2\u89a7\u53ef\u80fd\u3068\u306a\u308a\u8aad\u8005\u60c5\u5831\u306e\u6d41\u51fa\u3084\u6539\u3056\u3093\u306b\u7e4b\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001\u5fc5\u305a\u5916\u90e8\u516c\u958b\u3057\u3066\u3044\u306a\u3044\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u4e0a\u304b\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u3042\u308c\u3070node.js\u4e0a\u306a\u3069\u306eJavascript\u5b9f\u884c\u74b0\u5883\u306b\u914d\u7f6e\u3057\u3001\u7b2c\u4e09\u8005\u304c\u30b3\u30fc\u30c9\u3092\u8a8d\u8b58\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-title=\"\">\/\/ \u5b9a\u6570\u5b9a\u7fa9\r\nvar data = {\r\n  &quot;apikeyid&quot;     : &quot;1234567890abcdef&quot;, \/\/ \u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306eAPI Key ID\r\n  &quot;secret_key&quot;   : &quot;********&quot;,         \/\/ \u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u4f5c\u6210\u6642\u306b\u751f\u6210\u3055\u308c\u305f\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\r\n  &quot;api_fqdn&quot;     : &#039;my-ymail.com&#039;,     \/\/ \u30ef\u30a4\u30e1\u30fc\u30eb\u3067\u5229\u7528\u3057\u3066\u3044\u308b\u30c9\u30e1\u30a4\u30f3\u540d\r\n  &quot;id&quot;           : &quot;test&quot;,             \/\/ \u76ee\u7684\u306e\u30e1\u30eb\u30de\u30acID\r\n  &quot;email&quot;        : &quot;hanako-yamada@example.jp&quot;, \/\/ \u76ee\u7684\u306e\u8aad\u8005\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\r\n  &quot;contract_end&quot; : &quot;2025-06-30&quot;,               \/\/ \u66f4\u65b0\u5f8c\u306e\u5951\u7d04\u671f\u9650\r\n};\r\n\r\n\/\/ \u8aad\u8005\u60c5\u5831\u306e\u53d6\u5f97\r\nconst ymlget_result = await this.ymlGetUser(data);\r\nif(ymlget_result == &#039;ok&#039;){\r\n  try {\r\n    console.log(&#039;\u8aad\u8005\u60c5\u5831\u306e\u53d6\u5f97\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002&#039;);\r\n      \/\/ \u8aad\u8005\u60c5\u5831\u306e\u66f4\u65b0\r\n      const ymlupdate_result = await this.ymlUpdateUser(data);\r\n      if(ymlupdate_result == &#039;ok&#039;){\r\n        try {\r\n          console.log(&#039;\u8aad\u8005\u60c5\u5831\u306e\u66f4\u65b0\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002&#039;);\r\n        }\r\n        catch(err){\r\n          console.log(&#039;\u8aad\u8005\u60c5\u5831\u306e\u66f4\u65b0\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002&#039;);\r\n        }\r\n      }\r\n      else{\r\n        console.log(&#039;\u8aad\u8005\u60c5\u5831\u306e\u66f4\u65b0\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002&#039;);\r\n      }\r\n  }\r\n  catch(err){\r\n    console.log(&#039;\u8aad\u8005\u60c5\u5831\u306e\u53d6\u5f97\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002&#039;);\r\n  }\r\n}\r\nelse{\r\n  console.log(&#039;\u8aad\u8005\u60c5\u5831\u306e\u53d6\u5f97\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002&#039;);\r\n}\r\n\r\nasync function ymlGetUser(data){\r\n  let result;\r\n  const method = &#039;POST&#039;;\r\n  \/\/ \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\r\n  let api_url = &#039;https:\/\/&#039; + data.api_fqdn + &#039;\/api\/rest\/v1\/get-user\/&#039;;\r\n  \/\/ \u30d1\u30e9\u30e1\u30bf\u4f5c\u6210\r\n  var array={\r\n    &quot;apikeyid&quot; : data.apikeyid,\r\n    &quot;id&quot;       : data.id,\r\n    &quot;email&quot;    : data.email,\r\n  };\r\n  \/\/ \u7f72\u540d\u4f5c\u6210\r\n  let query_word = &#039;&#039;;\r\n  for (let [key, value] of Object.entries(array)) {\r\n    query_word += &#039;&amp;&#039; + key + &#039;=&#039; + encodeURIComponent(value);\r\n  }\r\n  query_word = query_word.slice(1);\r\n  let sign_word = method + &quot;\\n&quot; + data.api_fqdn + &quot;\\n&quot; + &#039;\/api\/rest\/v1\/get-user\/&#039; + &quot;\\n&quot; + query_word;\r\n  const crypto = require(&#039;crypto&#039;);\r\n  let b64 = crypto.createHmac(&#039;sha256&#039;, data.secret_key).update(sign_word).digest(&#039;base64&#039;);\r\n  let e_b64 = encodeURIComponent(b64);\r\n  \/\/ API\u547c\u3073\u51fa\u3057\r\n  var params = new URLSearchParams();\r\n  for (key in array){\r\n    params.append(key, array[key]);\r\n  }\r\n  params.append(&#039;signature&#039;, e_b64);\r\n  const axios = require(&quot;axios&quot;).default;\r\n  try {\r\n    let response = await axios.post(api_url, params.toString(),{\r\n      headers: {\r\n        &#039;Content-Type&#039;: &#039;application\/x-www-form-urlencoded;charset=UTF-8&#039;\r\n      }\r\n    });\r\n    \/\/ \u6210\u529f\u3057\u305f\u5834\u5408\r\n    if(response.data &amp;&amp; !response.data.errors){\r\n      \/\/ \u30e6\u30fc\u30b6\u306e\u30cf\u30c3\u30b7\u30e5\u3092\u8fd4\u5374\r\n      const uid = Object.getOwnPropertyNames(response.data.data)[0];\r\n      result = uid;\r\n    }\r\n    \/\/ \u5931\u6557\u3057\u305f\u5834\u5408\r\n    else{\r\n      result = &#039;ng&#039;;\r\n    }\r\n  }\r\n  catch (err) {\r\n    result = &#039;ng&#039;;\r\n  };\r\n  # \u7d50\u679c\u8fd4\u5374\r\n  return result;\r\n}\r\nasync function ymlUpdateUser(data){\r\n  let result;\r\n  const method = &#039;POST&#039;;\r\n  let api_url = &#039;https:\/\/&#039; + data.api_fqdn + &#039;\/api\/rest\/v1\/update-user\/&#039;;\r\n  var array = {\r\n    &quot;apikeyid&quot; : data.apikey_id,\r\n    &quot;id&quot;       : data.id,\r\n    &quot;hash&quot;     : data.hash,\r\n    &quot;free_1&quot;   : data.contract_end,\r\n  };\r\n  \/\/ \u7f72\u540d\u4f5c\u6210\r\n  let query_word = &#039;&#039;;\r\n  for (let [key, value] of Object.entries(array)) {\r\n    query_word += &#039;&amp;&#039; + key + &#039;=&#039; + encodeURIComponent(value);\r\n  }\r\n  query_word = query_word.slice(1);\r\n  let sign_word = method + &quot;\\n&quot; + data.api_fqdn + &quot;\\n&quot; + &#039;\/api\/rest\/v1\/update-user\/&#039; + &quot;\\n&quot; + query_word;\r\n  const crypto = require(&#039;crypto&#039;);\r\n  let b64 = crypto.createHmac(&#039;sha256&#039;, data.secret_key).update(sign_word).digest(&#039;base64&#039;);\r\n  let e_b64 = encodeURIComponent(b64);\r\n  \/\/ API\u547c\u3073\u51fa\u3057\r\n  var params = new URLSearchParams();\r\n  for (key in array){\r\n    params.append(key, array[key]);\r\n  }\r\n  params.append(&#039;signature&#039;, e_b64);\r\n  const axios = require(&quot;axios&quot;).default;\r\n  try {\r\n    let response = await axios.post(api_url, params.toString(),{\r\n      headers: {\r\n        &#039;Content-Type&#039;: &#039;application\/x-www-form-urlencoded;charset=UTF-8&#039;\r\n      }\r\n    });\r\n    \/\/ \u6210\u529f\u3057\u305f\u5834\u5408\r\n    if(response.data &amp;&amp; !response.data.errors){\r\n      result = &#039;ok&#039;;\r\n    }\r\n    \/\/ \u5931\u6557\u3057\u305f\u5834\u5408\r\n    else{\r\n      result = &#039;ng&#039;;\r\n    }\r\n  }\r\n  catch (err) {\r\n    result = &#039;ng&#039;;\r\n  };\r\n  return result;\r\n}<\/pre>\n<p><span style=\"font-size: 0.8rem;\">\u203b\u5909\u6570\u540d\u306f\u3042\u304f\u307e\u3067\u4f8b\u3067\u3059\u3002\u304a\u5ba2\u69d8\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u5408\u308f\u305b\u3066\u9069\u5b9c\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<h4>\u30c6\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>\u5b9f\u969b\u306b\u5951\u7d04\u66f4\u65b0\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3044\u3001\u76ee\u7684\u306e\u8aad\u8005\u306e\u300c\u5951\u7d04\u671f\u9650\u300d\u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3535 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_024134.png\" alt=\"\" width=\"1026\" height=\"456\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_024134.png 1026w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_024134-300x133.png 300w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_024134-768x341.png 768w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_024134-1024x455.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/05\/arrow.jpg\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3536 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_025450.png\" alt=\"\" width=\"758\" height=\"208\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_025450.png 758w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_025450-300x82.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/p>\n<p>\u53f3\u4e0a\u306e\u6700\u7d42\u66f4\u65b0\u60c5\u5831\u304c\u3001\u300c\u6700\u7d42\u66f4\u65b0 YYYY-MM-DD \/ API &#8220;\u4f5c\u6210\u3057\u305f\u30af\u30ec\u30c7\u30f3\u30b7\u30e3\u30eb\u306eAPI Key ID&#8221;\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3531 size-full\" src=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023124.png\" alt=\"\" width=\"819\" height=\"154\" srcset=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023124.png 819w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023124-300x56.png 300w, https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_023124-768x144.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<h2>\u6700\u5f8c\u306b<\/h2>\n<p>\u4eca\u56de\u306f\u3001\u30ef\u30a4\u30e1\u30fc\u30eb\u306eAPI\u3092\u4f7f\u3063\u305f\u5177\u4f53\u7684\u306a\u6d3b\u7528\u30b7\u30fc\u30f3\u306b\u3064\u3044\u3066\u3001\u5b9f\u969b\u306e\u4f8b\u3092\u7528\u3044\u3066\u89e3\u8aac\u3044\u305f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6240\u5b9a\u306e\u5f62\u5f0f\u3067API\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308c\u3070\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u5074\u306e\u8a00\u8a9e\u3084\u74b0\u5883\u3092\u554f\u308f\u305a\u306b\u3001\u5fc5\u8981\u306a\u60c5\u5831\u3092\u6b63\u78ba\u306b\u5f97\u3089\u308c\u3001\u307e\u305f\u305d\u306e\u60c5\u5831\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u304d\u308b\u3053\u3068\u304cAPI\u306e\u6700\u5927\u306e\u5229\u70b9\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u958b\u767a\u30b3\u30b9\u30c8\u3092\u6291\u3048\u305f\u308a\u3001\u30a2\u30a6\u30c8\u30bd\u30fc\u30b9\u3057\u3066\u3044\u308b\u51e6\u7406\u3092\u81ea\u793e\u30b7\u30b9\u30c6\u30e0\u5185\u3067\u5b8c\u7d50\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30ef\u30a4\u30e1\u30fc\u30eb\u3067\u306f\u3001\u4eca\u5f8c\u3082\u307e\u3059\u307e\u3059\u4f7f\u3044\u3084\u3059\u3044\u30b5\u30fc\u30d3\u30b9\u3068\u306a\u308b\u3088\u3046\u3001\u307e\u305f\u62c5\u5f53\u8005\u69d8\u306e\u624b\u9593\u3092\u4e00\u3064\u3067\u3082\u6e1b\u3089\u3057\u3066\u52b9\u7387\u7684\u306a\u30e1\u30fc\u30eb\u914d\u4fe1\u30a2\u30d7\u30ed\u30fc\u30c1\u304c\u53ef\u80fd\u3068\u306a\u308b\u3088\u3046\u3001\u6539\u826f\u3092\u91cd\u306d\u3066\u307e\u3044\u308a\u307e\u3059\u3002<\/p>\n<h2>\u514d\u8cac\u4e8b\u9805<\/h2>\n<p>\u672c\u30b3\u30e9\u30e0\u3067\u7d39\u4ecb\u3057\u305f\u30b3\u30fc\u30c9\u306e\u52d5\u4f5c\u4fdd\u8a3c\u306f\u884c\u3063\u3066\u304a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u5f53\u30b3\u30e9\u30e0\u306e\u5185\u5bb9\u306f\u3001\u30b3\u30e9\u30e0\u57f7\u7b46\u6642\u70b9\u3067\u306e\u5185\u5bb9\u3067\u3059\u3002\u4eca\u5f8c\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u7b49\u306b\u3088\u308a\u3001\u4ed5\u69d8\u3084\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u5909\u66f4\u306b\u306a\u308b\u5834\u5408\u304c\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u65e5\u3082\u3001\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u306e\u516c\u5f0f\u30b3\u30e9\u30e0\u3092\u3054\u89a7\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u4ee5\u524d\u306e\u30b3\u30e9\u30e0\u3067\u3001\u30ef\u30a4\u30e1\u30fc\u30eb\u304c\u516c\u958b\u3057\u3066\u3044\u308bAPI\u306b\u3064\u3044\u3066\u3001\u7c21\u5358\u306b\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u969b\u306f\u3001\u4e3b\u306bAPI\u306e\u6982\u5ff5\u3084\u3001\u30ef\u30a4\u30e1\u30fc\u30eb\u3067\u5229\u7528 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.y-ml.com\/column\/archives\/3510\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,7,6,5],"tags":[],"class_list":["post-3510","post","type-post","status-publish","format-standard","hentry","category-8","category-7","category-6","category-5"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u672c\u65e5\u3082\u3001\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u306e\u516c\u5f0f\u30b3\u30e9\u30e0\u3092\u3054\u89a7\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u4ee5\u524d\u306e\u30b3\u30e9\u30e0\u3067\u3001\u30ef\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Director\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.y-ml.com\/column\/archives\/3510\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0 | \u30e1\u30fc\u30eb\u914d\u4fe1\u30b7\u30b9\u30c6\u30e0\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u958b\u767a\u30b9\u30bf\u30c3\u30d5\u306b\u3088\u308b\u4fbf\u5229\u306a\u4f7f\u3044\u65b9\u3084\u6a5f\u80fd\u8ffd\u52a0\u60c5\u5831\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046 | \u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0\" \/>\n\t\t<meta property=\"og:description\" content=\"\u672c\u65e5\u3082\u3001\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u306e\u516c\u5f0f\u30b3\u30e9\u30e0\u3092\u3054\u89a7\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u4ee5\u524d\u306e\u30b3\u30e9\u30e0\u3067\u3001\u30ef\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.y-ml.com\/column\/archives\/3510\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/02\/cropped-logo.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/02\/cropped-logo.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"637\" \/>\n\t\t<meta property=\"og:image:height\" content=\"250\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-12-11T03:59:30+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-12-10T05:48:00+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046 | \u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u672c\u65e5\u3082\u3001\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u306e\u516c\u5f0f\u30b3\u30e9\u30e0\u3092\u3054\u89a7\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u4ee5\u524d\u306e\u30b3\u30e9\u30e0\u3067\u3001\u30ef\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/02\/cropped-logo.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510#article\",\"name\":\"API\\u3092\\u5229\\u7528\\u3057\\u3066\\u3055\\u3089\\u306b\\u30e1\\u30fc\\u30eb\\u914d\\u4fe1\\u696d\\u52d9\\u3092\\u81ea\\u52d5\\u5316\\u3057\\u3088\\u3046 | \\u30ef\\u30a4\\u30e1\\u30fc\\u30eb \\u516c\\u5f0f\\u30b3\\u30e9\\u30e0\",\"headline\":\"API\\u3092\\u5229\\u7528\\u3057\\u3066\\u3055\\u3089\\u306b\\u30e1\\u30fc\\u30eb\\u914d\\u4fe1\\u696d\\u52d9\\u3092\\u81ea\\u52d5\\u5316\\u3057\\u3088\\u3046\",\"author\":{\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/author\\\/daisaku_yasuhara#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/2024-12-10_021424.png\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510\\\/#articleImage\",\"width\":928,\"height\":675},\"datePublished\":\"2024-12-11T12:59:30+09:00\",\"dateModified\":\"2024-12-10T14:48:00+09:00\",\"inLanguage\":\"ja\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510#webpage\"},\"articleSection\":\"\\u30b5\\u30fc\\u30d3\\u30b9\\u306b\\u3064\\u3044\\u3066, \\u30e1\\u30fc\\u30eb\\u914d\\u4fe1\\u30b7\\u30b9\\u30c6\\u30e0\\u306b\\u3064\\u3044\\u3066, \\u30ef\\u30a4\\u30e1\\u30fc\\u30eb\\u306e\\u5fdc\\u7528, \\u30ef\\u30a4\\u30e1\\u30fc\\u30eb\\u306e\\u6a5f\\u80fd\\u89e3\\u8aac\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/category\\\/%e3%83%af%e3%82%a4%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e6%a9%9f%e8%83%bd%e8%a7%a3%e8%aa%ac#listItem\",\"name\":\"\\u30ef\\u30a4\\u30e1\\u30fc\\u30eb\\u306e\\u6a5f\\u80fd\\u89e3\\u8aac\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/category\\\/%e3%83%af%e3%82%a4%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e6%a9%9f%e8%83%bd%e8%a7%a3%e8%aa%ac#listItem\",\"position\":2,\"name\":\"\\u30ef\\u30a4\\u30e1\\u30fc\\u30eb\\u306e\\u6a5f\\u80fd\\u89e3\\u8aac\",\"item\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/category\\\/%e3%83%af%e3%82%a4%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e6%a9%9f%e8%83%bd%e8%a7%a3%e8%aa%ac\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510#listItem\",\"name\":\"API\\u3092\\u5229\\u7528\\u3057\\u3066\\u3055\\u3089\\u306b\\u30e1\\u30fc\\u30eb\\u914d\\u4fe1\\u696d\\u52d9\\u3092\\u81ea\\u52d5\\u5316\\u3057\\u3088\\u3046\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510#listItem\",\"position\":3,\"name\":\"API\\u3092\\u5229\\u7528\\u3057\\u3066\\u3055\\u3089\\u306b\\u30e1\\u30fc\\u30eb\\u914d\\u4fe1\\u696d\\u52d9\\u3092\\u81ea\\u52d5\\u5316\\u3057\\u3088\\u3046\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/category\\\/%e3%83%af%e3%82%a4%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e6%a9%9f%e8%83%bd%e8%a7%a3%e8%aa%ac#listItem\",\"name\":\"\\u30ef\\u30a4\\u30e1\\u30fc\\u30eb\\u306e\\u6a5f\\u80fd\\u89e3\\u8aac\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/#organization\",\"name\":\"\\u30ef\\u30a4\\u30e1\\u30fc\\u30eb \\u516c\\u5f0f\\u30b3\\u30e9\\u30e0\",\"description\":\"\\u30e1\\u30fc\\u30eb\\u914d\\u4fe1\\u30b7\\u30b9\\u30c6\\u30e0\\u300c\\u30ef\\u30a4\\u30e1\\u30fc\\u30eb\\u300d\\u958b\\u767a\\u30b9\\u30bf\\u30c3\\u30d5\\u306b\\u3088\\u308b\\u4fbf\\u5229\\u306a\\u4f7f\\u3044\\u65b9\\u3084\\u6a5f\\u80fd\\u8ffd\\u52a0\\u60c5\\u5831\",\"url\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/cropped-logo.jpg\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510\\\/#organizationLogo\",\"width\":637,\"height\":250},\"image\":{\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/author\\\/daisaku_yasuhara#author\",\"url\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/author\\\/daisaku_yasuhara\",\"name\":\"Director\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1c4214448843894e2568d4da0b0709cb89168b60b0ee5e9f8691ae5222b4d50c?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Director\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510#webpage\",\"url\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510\",\"name\":\"API\\u3092\\u5229\\u7528\\u3057\\u3066\\u3055\\u3089\\u306b\\u30e1\\u30fc\\u30eb\\u914d\\u4fe1\\u696d\\u52d9\\u3092\\u81ea\\u52d5\\u5316\\u3057\\u3088\\u3046 | \\u30ef\\u30a4\\u30e1\\u30fc\\u30eb \\u516c\\u5f0f\\u30b3\\u30e9\\u30e0\",\"description\":\"\\u672c\\u65e5\\u3082\\u3001\\u30e1\\u30fc\\u30eb\\u914d\\u4fe1\\u30b5\\u30fc\\u30d3\\u30b9\\u300c\\u30ef\\u30a4\\u30e1\\u30fc\\u30eb\\u300d\\u306e\\u516c\\u5f0f\\u30b3\\u30e9\\u30e0\\u3092\\u3054\\u89a7\\u3044\\u305f\\u3060\\u304d\\u3001\\u3042\\u308a\\u304c\\u3068\\u3046\\u3054\\u3056\\u3044\\u307e\\u3059\\u3002 \\u4ee5\\u524d\\u306e\\u30b3\\u30e9\\u30e0\\u3067\\u3001\\u30ef\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/3510#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/author\\\/daisaku_yasuhara#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/archives\\\/author\\\/daisaku_yasuhara#author\"},\"datePublished\":\"2024-12-11T12:59:30+09:00\",\"dateModified\":\"2024-12-10T14:48:00+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/#website\",\"url\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/\",\"name\":\"\\u30ef\\u30a4\\u30e1\\u30fc\\u30eb \\u516c\\u5f0f\\u30b3\\u30e9\\u30e0\",\"description\":\"\\u30e1\\u30fc\\u30eb\\u914d\\u4fe1\\u30b7\\u30b9\\u30c6\\u30e0\\u300c\\u30ef\\u30a4\\u30e1\\u30fc\\u30eb\\u300d\\u958b\\u767a\\u30b9\\u30bf\\u30c3\\u30d5\\u306b\\u3088\\u308b\\u4fbf\\u5229\\u306a\\u4f7f\\u3044\\u65b9\\u3084\\u6a5f\\u80fd\\u8ffd\\u52a0\\u60c5\\u5831\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.y-ml.com\\\/column\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046 | \u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0","description":"\u672c\u65e5\u3082\u3001\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u306e\u516c\u5f0f\u30b3\u30e9\u30e0\u3092\u3054\u89a7\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u4ee5\u524d\u306e\u30b3\u30e9\u30e0\u3067\u3001\u30ef","canonical_url":"https:\/\/www.y-ml.com\/column\/archives\/3510","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.y-ml.com\/column\/archives\/3510#article","name":"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046 | \u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0","headline":"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046","author":{"@id":"https:\/\/www.y-ml.com\/column\/archives\/author\/daisaku_yasuhara#author"},"publisher":{"@id":"https:\/\/www.y-ml.com\/column\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2024\/12\/2024-12-10_021424.png","@id":"https:\/\/www.y-ml.com\/column\/archives\/3510\/#articleImage","width":928,"height":675},"datePublished":"2024-12-11T12:59:30+09:00","dateModified":"2024-12-10T14:48:00+09:00","inLanguage":"ja","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.y-ml.com\/column\/archives\/3510#webpage"},"isPartOf":{"@id":"https:\/\/www.y-ml.com\/column\/archives\/3510#webpage"},"articleSection":"\u30b5\u30fc\u30d3\u30b9\u306b\u3064\u3044\u3066, \u30e1\u30fc\u30eb\u914d\u4fe1\u30b7\u30b9\u30c6\u30e0\u306b\u3064\u3044\u3066, \u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u5fdc\u7528, \u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u6a5f\u80fd\u89e3\u8aac"},{"@type":"BreadcrumbList","@id":"https:\/\/www.y-ml.com\/column\/archives\/3510#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.y-ml.com\/column\/#listItem","position":1,"name":"Home","item":"https:\/\/www.y-ml.com\/column\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.y-ml.com\/column\/archives\/category\/%e3%83%af%e3%82%a4%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e6%a9%9f%e8%83%bd%e8%a7%a3%e8%aa%ac#listItem","name":"\u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u6a5f\u80fd\u89e3\u8aac"}},{"@type":"ListItem","@id":"https:\/\/www.y-ml.com\/column\/archives\/category\/%e3%83%af%e3%82%a4%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e6%a9%9f%e8%83%bd%e8%a7%a3%e8%aa%ac#listItem","position":2,"name":"\u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u6a5f\u80fd\u89e3\u8aac","item":"https:\/\/www.y-ml.com\/column\/archives\/category\/%e3%83%af%e3%82%a4%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e6%a9%9f%e8%83%bd%e8%a7%a3%e8%aa%ac","nextItem":{"@type":"ListItem","@id":"https:\/\/www.y-ml.com\/column\/archives\/3510#listItem","name":"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.y-ml.com\/column\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.y-ml.com\/column\/archives\/3510#listItem","position":3,"name":"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046","previousItem":{"@type":"ListItem","@id":"https:\/\/www.y-ml.com\/column\/archives\/category\/%e3%83%af%e3%82%a4%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e6%a9%9f%e8%83%bd%e8%a7%a3%e8%aa%ac#listItem","name":"\u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u6a5f\u80fd\u89e3\u8aac"}}]},{"@type":"Organization","@id":"https:\/\/www.y-ml.com\/column\/#organization","name":"\u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0","description":"\u30e1\u30fc\u30eb\u914d\u4fe1\u30b7\u30b9\u30c6\u30e0\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u958b\u767a\u30b9\u30bf\u30c3\u30d5\u306b\u3088\u308b\u4fbf\u5229\u306a\u4f7f\u3044\u65b9\u3084\u6a5f\u80fd\u8ffd\u52a0\u60c5\u5831","url":"https:\/\/www.y-ml.com\/column\/","logo":{"@type":"ImageObject","url":"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/02\/cropped-logo.jpg","@id":"https:\/\/www.y-ml.com\/column\/archives\/3510\/#organizationLogo","width":637,"height":250},"image":{"@id":"https:\/\/www.y-ml.com\/column\/archives\/3510\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.y-ml.com\/column\/archives\/author\/daisaku_yasuhara#author","url":"https:\/\/www.y-ml.com\/column\/archives\/author\/daisaku_yasuhara","name":"Director","image":{"@type":"ImageObject","@id":"https:\/\/www.y-ml.com\/column\/archives\/3510#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/1c4214448843894e2568d4da0b0709cb89168b60b0ee5e9f8691ae5222b4d50c?s=96&d=mm&r=g","width":96,"height":96,"caption":"Director"}},{"@type":"WebPage","@id":"https:\/\/www.y-ml.com\/column\/archives\/3510#webpage","url":"https:\/\/www.y-ml.com\/column\/archives\/3510","name":"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046 | \u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0","description":"\u672c\u65e5\u3082\u3001\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u306e\u516c\u5f0f\u30b3\u30e9\u30e0\u3092\u3054\u89a7\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u4ee5\u524d\u306e\u30b3\u30e9\u30e0\u3067\u3001\u30ef","inLanguage":"ja","isPartOf":{"@id":"https:\/\/www.y-ml.com\/column\/#website"},"breadcrumb":{"@id":"https:\/\/www.y-ml.com\/column\/archives\/3510#breadcrumblist"},"author":{"@id":"https:\/\/www.y-ml.com\/column\/archives\/author\/daisaku_yasuhara#author"},"creator":{"@id":"https:\/\/www.y-ml.com\/column\/archives\/author\/daisaku_yasuhara#author"},"datePublished":"2024-12-11T12:59:30+09:00","dateModified":"2024-12-10T14:48:00+09:00"},{"@type":"WebSite","@id":"https:\/\/www.y-ml.com\/column\/#website","url":"https:\/\/www.y-ml.com\/column\/","name":"\u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0","description":"\u30e1\u30fc\u30eb\u914d\u4fe1\u30b7\u30b9\u30c6\u30e0\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u958b\u767a\u30b9\u30bf\u30c3\u30d5\u306b\u3088\u308b\u4fbf\u5229\u306a\u4f7f\u3044\u65b9\u3084\u6a5f\u80fd\u8ffd\u52a0\u60c5\u5831","inLanguage":"ja","publisher":{"@id":"https:\/\/www.y-ml.com\/column\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"\u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0 | \u30e1\u30fc\u30eb\u914d\u4fe1\u30b7\u30b9\u30c6\u30e0\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u958b\u767a\u30b9\u30bf\u30c3\u30d5\u306b\u3088\u308b\u4fbf\u5229\u306a\u4f7f\u3044\u65b9\u3084\u6a5f\u80fd\u8ffd\u52a0\u60c5\u5831","og:type":"article","og:title":"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046 | \u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0","og:description":"\u672c\u65e5\u3082\u3001\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u306e\u516c\u5f0f\u30b3\u30e9\u30e0\u3092\u3054\u89a7\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u4ee5\u524d\u306e\u30b3\u30e9\u30e0\u3067\u3001\u30ef","og:url":"https:\/\/www.y-ml.com\/column\/archives\/3510","og:image":"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/02\/cropped-logo.jpg","og:image:secure_url":"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/02\/cropped-logo.jpg","og:image:width":637,"og:image:height":250,"article:published_time":"2024-12-11T03:59:30+00:00","article:modified_time":"2024-12-10T05:48:00+00:00","twitter:card":"summary_large_image","twitter:title":"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046 | \u30ef\u30a4\u30e1\u30fc\u30eb \u516c\u5f0f\u30b3\u30e9\u30e0","twitter:description":"\u672c\u65e5\u3082\u3001\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u300c\u30ef\u30a4\u30e1\u30fc\u30eb\u300d\u306e\u516c\u5f0f\u30b3\u30e9\u30e0\u3092\u3054\u89a7\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u4ee5\u524d\u306e\u30b3\u30e9\u30e0\u3067\u3001\u30ef","twitter:image":"https:\/\/www.y-ml.com\/column\/wp-content\/uploads\/2018\/02\/cropped-logo.jpg"},"aioseo_meta_data":{"post_id":"3510","title":null,"description":null,"keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-25 07:49:05","updated":"2026-11-25 09:25:05"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.y-ml.com\/column\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.y-ml.com\/column\/archives\/category\/%e3%83%af%e3%82%a4%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e6%a9%9f%e8%83%bd%e8%a7%a3%e8%aa%ac\" title=\"\u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u6a5f\u80fd\u89e3\u8aac\">\u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u6a5f\u80fd\u89e3\u8aac<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAPI\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.y-ml.com\/column\/"},{"label":"\u30ef\u30a4\u30e1\u30fc\u30eb\u306e\u6a5f\u80fd\u89e3\u8aac","link":"https:\/\/www.y-ml.com\/column\/archives\/category\/%e3%83%af%e3%82%a4%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%ae%e6%a9%9f%e8%83%bd%e8%a7%a3%e8%aa%ac"},{"label":"API\u3092\u5229\u7528\u3057\u3066\u3055\u3089\u306b\u30e1\u30fc\u30eb\u914d\u4fe1\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046","link":"https:\/\/www.y-ml.com\/column\/archives\/3510"}],"_links":{"self":[{"href":"https:\/\/www.y-ml.com\/column\/wp-json\/wp\/v2\/posts\/3510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.y-ml.com\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.y-ml.com\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.y-ml.com\/column\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.y-ml.com\/column\/wp-json\/wp\/v2\/comments?post=3510"}],"version-history":[{"count":22,"href":"https:\/\/www.y-ml.com\/column\/wp-json\/wp\/v2\/posts\/3510\/revisions"}],"predecessor-version":[{"id":3547,"href":"https:\/\/www.y-ml.com\/column\/wp-json\/wp\/v2\/posts\/3510\/revisions\/3547"}],"wp:attachment":[{"href":"https:\/\/www.y-ml.com\/column\/wp-json\/wp\/v2\/media?parent=3510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.y-ml.com\/column\/wp-json\/wp\/v2\/categories?post=3510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.y-ml.com\/column\/wp-json\/wp\/v2\/tags?post=3510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}