{"id":3659,"date":"2015-07-16T12:06:54","date_gmt":"2015-07-16T03:06:54","guid":{"rendered":"https:\/\/ec2-54-238-200-5.ap-northeast-1.compute.amazonaws.com\/blog\/?p=3659"},"modified":"2022-09-12T13:53:27","modified_gmt":"2022-09-12T04:53:27","slug":"api%e3%82%ad%e3%83%bc%e8%aa%8d%e8%a8%bc%e3%81%a7%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e3%82%92%e5%bc%b7%e5%8c%96%e3%81%97%e3%82%88%e3%81%86","status":"publish","type":"post","link":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=3659","title":{"rendered":"API\u30ad\u30fc\u8a8d\u8a3c\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3057\u3088\u3046"},"content":{"rendered":"<p><img decoding=\"async\" style=\"margin: auto;\" alt=\"\u6210\u529f\u30bf\u30b0\u306e\u4ed8\u3044\u305f\u9375\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/07\/7197138_s.jpg\" width=\"50%\" \/><\/p>\n<h4><strong>\u306f\u3058\u3081\u306b<\/strong><\/h4>\n<p>2015\u5e747\u67087\u65e5\u306e\u4e03\u5915\u306b\u3001SendGrid\u306e<a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=3612\" target=\"_blank\">\u65b0\u30dd\u30fc\u30bf\u30eb\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f<\/a>\u3002\u3053\u308c\u306b\u4f34\u3044\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u304c\u5f37\u5316\u3055\u308c\u3001API\u30ad\u30fc\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<div style=\"clear: both; width: auto; height: 40px;\"><\/div>\n<h4><strong>API\u30ad\u30fc\u306e\u5b09\u3057\u3044\u3068\u3053\u308d<\/strong><\/h4>\n<p>\u3053\u308c\u307e\u3067\u306eSendGrid\u3067\u306f\u3001SMTP\u3084Web API\u306e\u8a8d\u8a3c\u306b\u3001\u30dd\u30fc\u30bf\u30eb\u3078\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u305f\u3081\u306e\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u305d\u306e\u307e\u307e\u4f7f\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u306e\u8a8d\u8a3c\u65b9\u6cd5\u306f\u5f15\u304d\u3064\u3065\u304d\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3042\u3089\u305f\u306b\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u542b\u307e\u306a\u3044API\u30ad\u30fc\u306b\u3088\u308b\u8a8d\u8a3c\u3082\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\nAPI\u30ad\u30fc\u306f\u3001\u3059\u3050\u306b\u8ffd\u52a0\u3067\u304d\u3001\u3059\u3050\u306b\u7834\u68c4\u3067\u304d\u3001\u8907\u6570\u540c\u6642\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30aa\u30da\u30ec\u30fc\u30bf\u3084\u30b5\u30fc\u30d0\u3054\u3068\u306b\u7570\u306a\u308bAPI\u30ad\u30fc\u3092\u914d\u5e03\u3057\u3001\u4e07\u304c\u4e00API\u30ad\u30fc\u304c\u6f0f\u6d29\u3059\u308b\u306a\u3069\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u554f\u984c\u304c\u8d77\u304d\u3066\u3057\u307e\u3063\u305f\u306a\u3089\u3070\u500b\u5225\u306b\u7121\u52b9\u306b\u3059\u308b\u3001\u3068\u3044\u3063\u305f\u67d4\u8edf\u306a\u904b\u7528\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<div style=\"clear: both; width: auto; height: 40px;\"><\/div>\n<h4><strong>API\u30ad\u30fc\u306e\u8ffd\u52a0<\/strong><\/h4>\n<p>API\u30ad\u30fc\u306e\u8ffd\u52a0\u306f\u3001\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\u3002\u306f\u3058\u3081\u306b\u3001\u65b0\u30dd\u30fc\u30bf\u30eb\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c<strong>SETTINGS &gt; API Keys<\/strong>\u300d\u3092\u9078\u629e\u3057\u305f\u306e\u3061\u3001\u53f3\u4e0a\u306e\u300c<strong>Create API Key<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" alt=\"API\u30ad\u30fc\u306e\u30ea\u30b9\u30c8\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/07\/api_key_list.png\" width=\"100%\"\/><\/p>\n<p>\u8868\u793a\u3055\u308c\u305f\u300c<strong>KEY NAME<\/strong>\u300d\u30d5\u30a9\u30fc\u30e0\u306b\u3001\u7ba1\u7406\u7528\u306e\u30e9\u30d9\u30eb\u540d\u3092\u5165\u529b\u3057\u305f\u306e\u3061\u3001\u53f3\u4e0a\u306e\u300c<strong>Save<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u30e9\u30d9\u30eb\u540d\u306f\u3001\u7528\u9014\u3092\u793a\u3059\u5206\u304b\u308a\u3084\u3059\u3044\u3082\u306e\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<br \/>\n<img decoding=\"async\" alt=\"API\u30ad\u30fc\u306e\u524a\u9664\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/07\/api_key_add_new.png\" width=\"100%\" \/><\/p>\n<p>\u4f5c\u6210\u3055\u308c\u305fAPI\u30ad\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u306eAPI\u30ad\u30fc\u306f\u4e00\u5ea6\u3057\u304b\u8868\u793a\u3055\u308c\u305a\u3001\u518d\u78ba\u8a8d\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u9069\u5207\u306a\u5834\u6240\u306b\u4fdd\u5b58\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u8868\u793a\u3055\u308c\u305fAPI\u30ad\u30fc\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3055\u308c\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" alt=\"API\u30ad\u30fc\u306e\u751f\u6210\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/07\/api_key_generated.png\" width=\"100%\" \/><\/p>\n<p>\u306a\u304a\u3001\u77ed\u6642\u9593\u306b\u9023\u7d9a\u3057\u3066\u8ffd\u52a0\u4f5c\u696d\u3092\u884c\u3063\u305f\u5834\u5408\u3001\u300ctoo many requests\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u969b\u306f\u3001\u6570\u5341\u79d2\u307b\u3069\u5f85\u3063\u3066\u304b\u3089\u8ffd\u52a0\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div style=\"clear: both; width: auto; height: 40px;\"><\/div>\n<h4><strong>API\u30ad\u30fc\u306e\u7834\u68c4<\/strong><\/h4>\n<p>\u7279\u5b9a\u306eAPI\u30ad\u30fc\u3092\u7834\u68c4\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u53f3\u306e\u6b6f\u8eca\u30dc\u30bf\u30f3\u304b\u3089\u300c<strong>Delete<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" alt=\"API\u30ad\u30fc\u306e\u7834\u68c4\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/07\/api_key_delete.png\" width=\"100%\" \/><\/p>\n<p>\u78ba\u8a8d\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u672c\u5f53\u306b\u7834\u68c4\u3057\u3066\u826f\u3051\u308c\u3070\u300c<strong>Confirm<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" style=\"margin: auto;\" alt=\"API\u30ad\u30fc\u306e\u7834\u68c4\u78ba\u8a8d\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/07\/api_keys_delete_confirm.png\" width=\"75%\" \/><\/p>\n<div style=\"clear: both; width: auto; height: 40px;\"><\/div>\n<h4><strong>API\u30ad\u30fc\u306e\u4f7f\u7528<\/strong><\/h4>\n<p>API\u30ad\u30fc\u306b\u3088\u308b\u8a8d\u8a3c\u304c\u3067\u304d\u308b\u306e\u306f\u3001SMTP\u3001<a href=\"https:\/\/sendgrid.com\/docs\/API_Reference\/Web_API\/mail.html\" target=\"_blank\">Web API\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8<\/a>\u3001<a href=\"https:\/\/sendgrid.com\/docs\/API_Reference\/Web_API_v3\/index.html\" target=\"_blank\">Web API v3<\/a>\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u8a8d\u8a3c\u306b\u3064\u3044\u3066\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u4f7f\u3063\u305f\u8a8d\u8a3c\u304b\u3089\u79fb\u884c\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nAPI\u30ad\u30fc\u3054\u3068\u306b\u6a29\u9650\u3092\u8a2d\u5b9a\u3059\u308b\u6a5f\u80fd\u3082\u3001\u92ed\u610f\u958b\u767a\u4e2d\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u964d\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3067\u3042\u308b\u3068\u3057\u3066\u3001\u5177\u4f53\u7684\u306a\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<table style=\"border: solid 1px #555555;\" width=\"100%\" border=\"1\">\n<tbody>\n<tr>\n<th style=\"padding: 1ex;\">\u30e6\u30fc\u30b6\u540d<\/th>\n<td style=\"padding: 1ex;\"><em>[USER_NAME]<\/em><\/td>\n<\/tr>\n<tr>\n<th style=\"padding: 1ex;\">\u30d1\u30b9\u30ef\u30fc\u30c9<\/th>\n<td style=\"padding: 1ex;\"><em>[PASSWORD]<\/em><\/td>\n<\/tr>\n<tr>\n<th style=\"padding: 1ex;\">API\u30ad\u30fc<\/th>\n<td style=\"padding: 1ex;\"><em>[API_KEY]<\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"clear: both; width: auto; height: 40px;\"><\/div>\n<h4><strong>SMTP<\/strong><\/h4>\n<p>SMTP\u8a8d\u8a3c\u3067API\u30ad\u30fc\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001\u30e6\u30fc\u30b6\u540d\u3092apikey\u3068\u3044\u3046\u56fa\u5b9a\u6587\u5b57\u5217\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092<em>[API_KEY]<\/em>\u3001\u3068\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u305f\u3068\u3048\u3070Thunderbird\u3067\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308c\u3070OK\u3067\u3059\u3002<br \/>\n<img decoding=\"async\" alt=\"Thunderbird\u306eSMTP\u8a2d\u5b9a\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/07\/api_key_smtp_thunderbird.png\" width=\"100%\" \/><\/p>\n<div style=\"clear: both; width: auto; height: 40px;\"><\/div>\n<h4><strong>\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u306eWeb API\u3001\u5168\u3066\u306eWeb API v3<\/strong><\/h4>\n<p>Authorization\u30d8\u30c3\u30c0\u306eBearer\u30c8\u30fc\u30af\u30f3\u306b\u3001API\u30ad\u30fc\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u305f\u3068\u3048\u3070curl\u30b3\u30de\u30f3\u30c9\u3067\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u5834\u5408\u306f\u3001\u3053\u308c\u307e\u3067<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl -X POST https:\/\/api.sendgrid.com\/api\/mail.send.json \r\n     -d &quot;to=test@sendgrid.com&quot; \r\n     -d &quot;from=you@youraddress.com&quot; \r\n     -d &quot;subject=Sending with SendGrid is Fun&quot; \r\n     -d &quot;html=and easy to do anywhere, even with CURL&quot; \r\n     -d &quot;api_user=&#x5B;USER_NAME]&quot; \r\n     -d &quot;api_key=&#x5B;PASSWORD]&quot;\r\n<\/pre>\n<p>\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3044\u305f\u3068\u3053\u308d\u3092\u3001<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl -X POST https:\/\/api.sendgrid.com\/api\/mail.send.json \r\n     -d &quot;to=test@sendgrid.com&quot; \r\n     -d &quot;from=you@youraddress.com&quot; \r\n     -d &quot;subject=Sending with SendGrid is Fun&quot; \r\n     -d &quot;html=and easy to do anywhere, even with CURL&quot; \r\n     -H &quot;Authorization: Bearer &#x5B;API_KEY]&quot;\r\n<\/pre>\n<p>\u3068\u5909\u66f4\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<div style=\"clear: both; width: auto; height: 40px;\"><\/div>\n<h4><strong>\u516c\u5f0f\u30e9\u30a4\u30d6\u30e9\u30ea<\/strong><\/h4>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=10832\" target=\"_blank\">SendGrid\u306e\u516c\u5f0f\u30e9\u30a4\u30d6\u30e9\u30ea<\/a>\u306f\u3001\u307b\u307c\u5bfe\u5fdc\u6e08\u307f\u3067\u3059\u3002<br \/>\n\u305f\u3068\u3048\u3070<a href=\"https:\/\/github.com\/sendgrid\/sendgrid-nodejs\" target=\"_blank\">Node.js\u30e9\u30a4\u30d6\u30e9\u30ea<\/a>\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001\u3053\u308c\u307e\u3067<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nvar sendgrid  = require('sendgrid')(&#x5B;USER_NAME], &#x5B;PASSWORD]);\r\n<\/pre>\n<p>\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3044\u305f\u3068\u3053\u308d\u3092\u3001<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nvar sendgrid  = require('sendgrid')(&#x5B;API_KEY]);\r\n<\/pre>\n<p>\u3068\u5909\u66f4\u3059\u308c\u3070OK\u3067\u3059\u3002<br \/>\n\u306a\u304a\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u306b\u306f\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3084API\u30ad\u30fc\u306e\u6587\u5b57\u5217\u306f\u57cb\u3081\u3053\u307e\u305a\u3001\u74b0\u5883\u5909\u6570\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u8aad\u307f\u3053\u3080\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div style=\"clear: both; width: auto; height: 40px;\"><\/div>\n<h4><strong>\u304a\u308f\u308a\u306b<\/strong><\/h4>\n<p>\u65b0\u30dd\u30fc\u30bf\u30eb\u3067\u306f\u3001API\u30ad\u30fc\u4ee5\u5916\u306b\u3082\u69d8\u3005\u306a\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u9806\u6b21\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u306e\u3067\u3001\u304a\u697d\u3057\u307f\u306b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b 2015\u5e747\u67087\u65e5\u306e\u4e03\u5915\u306b\u3001SendGrid\u306e\u65b0\u30dd\u30fc\u30bf\u30eb\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u4f34\u3044\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u304c\u5f37\u5316\u3055\u308c\u3001API\u30ad\u30fc\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 API\u30ad\u30fc\u306e\u5b09\u3057\u3044\u3068\u3053\u308d \u3053\u308c\u307e\u3067\u306eSendGrid\u3067\u306f <a class=\"read-more\" href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=3659\">&#8230;\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":6376,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11,8],"tags":[],"class_list":["post-3659","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical","category-product"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3659"}],"version-history":[{"count":5,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3659\/revisions"}],"predecessor-version":[{"id":15812,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3659\/revisions\/15812"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/6376"}],"wp:attachment":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}