{"id":7702,"date":"2017-04-04T11:44:03","date_gmt":"2017-04-04T02:44:03","guid":{"rendered":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=7702"},"modified":"2017-04-20T19:29:15","modified_gmt":"2017-04-20T10:29:15","slug":"jshell%e3%81%8b%e3%82%89sendgrid%e3%81%a7%e3%83%a1%e3%83%bc%e3%83%ab%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=7702","title":{"rendered":"JShell\u304b\u3089SendGrid\u3067\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2017\/03\/49159238_S.jpg\" alt=\"Java\" width=\"450\" height=\"281\" class=\"aligncenter size-full wp-image-7719\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2017\/03\/49159238_S.jpg 450w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2017\/03\/49159238_S-300x187.jpg 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>SendGrid\u30b5\u30dd\u30fc\u30c8\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u83ca\u7530(<a href=\"https:\/\/twitter.com\/kikutaro_\" target=\"_blank\">@kikutaro_<\/a>)\u3067\u3059\u3002\u65e9\u3044\u3082\u306e\u3067SendGrid\u30c1\u30fc\u30e0\u306b\u30b8\u30e7\u30a4\u30f3\u3057\u3066\u304b\u3089\u534a\u5e74\u304c\u7d4c\u3061\u307e\u3057\u305f\u3002\u4ee5\u524d\u3001\u958b\u767a\u8005\u3060\u3063\u305f\u3068\u304d\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u3057\u3066Java\u3092\u4e3b\u306b\u5229\u7528\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u8fd1\u3067\u306f\u89e6\u308b\u6a5f\u4f1a\u304c\u5c11\u3057\u6e1b\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002Java\u306f\u4eca\u5e74\u3001Java SE 9\u3001Java EE 8\u306e\u30ea\u30ea\u30fc\u30b9\u304c\u4e88\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u65b0\u3057\u3044\u6a5f\u80fd\u3092\u4e2d\u5fc3\u306b\u307e\u305f\u8272\u3005\u3068\u89e6\u3063\u3066\u3044\u304d\u305f\u3044\u6240\u3067\u3059\u3002<\/p>\n<p>\u65e2\u306bJava SE 9\u306eJDK(Java Development Kit)\u3084JRE(Java Runtime Environment)\u306f<a href=\"https:\/\/jdk9.java.net\/download\/\" target=\"_blank\">Early Access\u7248\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u308b<\/a>\u305f\u3081\u3001\u5b9f\u969b\u306b\u65b0\u3057\u3044\u6a5f\u80fd\u3092\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u3053\u3067\u672c\u65e5\u306f\u3001Java SE 9\u3067\u65b0\u3057\u304f\u8ffd\u52a0\u3055\u308c\u308b<a href=\"http:\/\/openjdk.java.net\/jeps\/222\" target=\"_blank\">JShell<\/a>\u3092\u4f7f\u3063\u3066SendGrid\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u52d5\u304b\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>JShell\u3068\u306f?<\/h2>\n<p>JShell\u3068\u306fJava\u3092\u5bfe\u8a71\u7684\u306b\u8a55\u4fa1\u30fb\u5b9f\u884c\u3059\u308b\u30c4\u30fc\u30eb\u3067\u3001\u3044\u308f\u3086\u308bREPL(Read-Eval-Print Loop)\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728Java\u3092\u52d5\u304b\u3059\u306b\u306f\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u3084IDE\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3061\u3087\u3063\u3068\u3057\u305f\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u3092\u8a66\u3059\u5834\u5408\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u306a\u3069\u306b\u6bd4\u3079\u308b\u3068\u3069\u3046\u3057\u3066\u3082\u624b\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001Java SE 9\u304b\u3089\u306f\u3001JShell\u3092\u5229\u7528\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u611f\u899a\u3067Java\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<blockquote><p>\nJShell\u306b\u95a2\u3059\u308b\u8a73\u3057\u3044\u89e3\u8aac\u306fJava Champion\u3067\u3042\u308b\u6afb\u5ead \u7950\u4e00\u3055\u3093\u304c\u57f7\u7b46\u3055\u308c\u3066\u3044\u308b\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"http:\/\/itpro.nikkeibp.co.jp\/atcl\/column\/15\/120700278\/\" target=\"_blank\"><strong>\u6700\u65b0Java\u60c5\u5831\u5c40<\/strong><\/a><br \/>\n&#8211; <a href=\"http:\/\/itpro.nikkeibp.co.jp\/atcl\/column\/15\/120700278\/020700031\/\" target=\"_blank\">Java SE 9\u3067\u5c0e\u5165\u3055\u308c\u308b\u300cProject Kulla\u300d\u3001\u4fbf\u5229\u306aREPL\u30c4\u30fc\u30eb<\/a><br \/>\n&#8211; <a href=\"http:\/\/itpro.nikkeibp.co.jp\/atcl\/column\/15\/120700278\/022100032\/\" target=\"_blank\">Java SE 9\u306eProject Kulla\u3001JShell\u3092\u6df1\u304f\u77e5\u308b<\/a><br \/>\n&#8211; <a href=\"http:\/\/itpro.nikkeibp.co.jp\/atcl\/column\/15\/120700278\/030800033\/\" target=\"_blank\">Java SE 9\u3067\u5c0e\u5165\u3055\u308c\u308bJShell\u306e\u7d44\u307f\u8fbc\u307f\u30b3\u30de\u30f3\u30c9\u3092\u77e5\u308b<\/a><br \/>\n&#8211; <a href=\"http:\/\/itpro.nikkeibp.co.jp\/atcl\/column\/15\/120700278\/031900034\/\" target=\"_blank\">Java SE 9\u306eProject Kulla\u3001JShell\u306e\u52d5\u4f5c\u3068JShell API<\/a><br \/>\n&#8211; <a href=\"http:\/\/itpro.nikkeibp.co.jp\/atcl\/column\/15\/120700278\/040500035\/\" target=\"_blank\">Java SE 9\u306eProject Kulla\u3001JShell\u3068IDE<\/a><br \/>\n&#8211; <a href=\"http:\/\/itpro.nikkeibp.co.jp\/atcl\/column\/15\/120700278\/041800036\/\" target=\"_blank\">Java SE 9\u306eProject Kulla\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u305f\u3081\u306eJLine<\/a><br \/>\n\u203b\u9023\u8f09\u3067\u3059\u306e\u3067\u4e0a\u8a18\u4ee5\u5916\u306eJShell\u95a2\u9023\u8a18\u4e8b\u304c\u5897\u3048\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\n<\/p><\/blockquote>\n<p>\u767e\u805e\u306f\u4e00\u898b\u306b\u5982\u304b\u305a\u3001\u3067\u3059\u306e\u3067\u5b9f\u969b\u306b\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306f\u300cHello, World!\u300d\u3092\u6a19\u6e96\u51fa\u529b\u3059\u308bJava\u30b3\u30fc\u30c9\u3092JShell\u3067\u5b9f\u884c\u3057\u305f\u4f8b(\u203b1)\u3067\u3059\u3002<\/p>\n<aside>\n\u203b1 2017\u5e743\u670824\u65e5\u6642\u70b9\u3067\u6700\u65b0\u306e<a href=\"https:\/\/jdk9.java.net\/download\/\" target=\"_blank\">JDK 9 EA 161(Early Access)<\/a>\u3067\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<\/aside>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:\\Users\\kikutaro&gt;jshell\r\n|  JShell\u3078\u3088\u3046\u3053\u305d -- \u30d0\u30fc\u30b8\u30e7\u30f39-ea\r\n|  \u6982\u8981\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044: \/help intro\r\n\r\njshell&gt; System.out.println(&quot;Hello, World!&quot;)\r\nHello, World!\r\n<\/pre>\n<p>jshell\u30b3\u30de\u30f3\u30c9\u3067JShell\u3092\u8d77\u52d5\u5f8c\u3001\u3059\u3050\u306bJava\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002JShel\u3067\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u306e\u8d77\u70b9\u3068\u306a\u308bmain\u30e1\u30bd\u30c3\u30c9\u3084\u305d\u308c\u3092\u6301\u3064\u30af\u30e9\u30b9\u306e\u5ba3\u8a00\u304c\u4e0d\u8981\u306a\u306e\u3067\u304a\u624b\u8efd\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30bd\u30fc\u30eb\u3067Tab\u30ad\u30fc\u3092\u62bc\u3059\u3068\u30b3\u30fc\u30c9\u88dc\u5b8c\u3082\u884c\u308f\u308c\u307e\u3059\u306e\u3067\u3001IDE\u304c\u306a\u304f\u3066\u3082\u3042\u308b\u7a0b\u5ea6\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\njshell&gt; System.out.print\r\nprint(     printf(    println(\r\n<\/pre>\n<p>\u300c\/exit\u300d\u30b3\u30de\u30f3\u30c9\u3067JShell\u306f\u7d42\u4e86\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\njshell&gt; \/exit\r\n|  \u7d42\u4e86\u3057\u307e\u3059\r\n<\/pre>\n<p>\u304a\u8a66\u3057\u30b3\u30fc\u30c9\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u305f\u3044\u5834\u5408\u3084\u3001\u6559\u80b2\u306a\u3069\u3067\u6d3b\u7528\u3059\u308b\u3068\u4fbf\u5229\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<h2>JShell\u304b\u3089SendGrid\u3092\u5229\u7528\u3059\u308b<\/h2>\n<p>JShell\u306f\u8272\u3005\u306a\u6d3b\u7528\u65b9\u6cd5\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u500b\u4eba\u7684\u306b\u306fOSS\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u52d5\u4f5c\u78ba\u8a8d\u306a\u3069\u306b\u826f\u3055\u305d\u3046\u3060\u306a\u3001\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u3053\u3067\u4eca\u56de\u306fSendGrid\u306eJava\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308b<a href=\"https:\/\/github.com\/sendgrid\/sendgrid-java\" target=\"_blank\">sendgrid-java<\/a>\u3092JShell\u304b\u3089\u4f7f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/sendgrid\/sendgrid-java\" target=\"_blank\">sendgrid-java<\/a>\u3067\u306f\u3001<a href=\"https:\/\/github.com\/sendgrid\/sendgrid-java#via-jar-file\" target=\"_blank\">\u5fc5\u8981\u306a\u4f9d\u5b58\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5168\u3066\u542b\u3093\u3060jar\u30d5\u30a1\u30a4\u30eb(fat jar)\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u308b<\/a>\u306e\u3067\u3001\u4eca\u56de\u306f\u3053\u3061\u3089\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5229\u7528\u3057\u307e\u3059(\u203b2)\u3002<\/p>\n<aside>\n\u203b2 2017\u5e743\u670824\u65e5\u6642\u70b9\u3067\u6700\u65b0\u306esendgrid-java-3.2.0-jar.jar\u3067\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<\/aside>\n<p>JShell\u3067\u306f\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3057\u3066\u30af\u30e9\u30b9\u30d1\u30b9\u306e\u6307\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002java\u30b3\u30de\u30f3\u30c9\u3067\u306f\u300c-cp\u300d\u3067\u3059\u304c\u3001JShell\u3067\u306f\u300c&#8211;class-path\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:\\Users\\kikutaro\\sendgrid&gt;jshell --class-path sendgrid-java-3.2.0-jar.jar\r\n|  JShell\u3078\u3088\u3046\u3053\u305d -- \u30d0\u30fc\u30b8\u30e7\u30f39-ea\r\n|  \u6982\u8981\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044: \/help intro\r\n\r\njshell&gt;\r\n<\/pre>\n<p>\u306a\u304a\u3001\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u306f\u306a\u304f\u3001JShell\u3092\u8d77\u52d5\u3057\u305f\u5f8c\u3067\u3082\u300c\/env\u300d\u30b3\u30de\u30f3\u30c9\u3067\u6b21\u306e\u3088\u3046\u306b\u30af\u30e9\u30b9\u30d1\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\njshell&gt; \/env --class-path sendgrid-java-3.2.0-jar.jar\r\n|  \u65b0\u3057\u3044\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3068\u72b6\u614b\u306e\u5fa9\u5143\u3002\r\n<\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001JShell\u3067sendgrid-java\u306eGitHub\u306b\u3042\u308b<a href=\"https:\/\/github.com\/sendgrid\/sendgrid-java#with-mail-helper-class\" target=\"_blank\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/a>\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306fimport\u6587\u3067com.sendgrid\u914d\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30fb\u30af\u30e9\u30b9\u3092import\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a<a href=\"https:\/\/github.com\/sendgrid\/sendgrid-java\" target=\"_blank\">sendgrid-java<\/a>\u304a\u3088\u3073\u4f9d\u5b58\u95a2\u4fc2\u306b\u3042\u308b<a href=\"https:\/\/github.com\/sendgrid\/java-http-client\" target=\"_blank\">java-http-client<\/a>\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30af\u30e9\u30b9\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\njshell&gt; import com.sendgrid.*\r\n<\/pre>\n<p><a href=\"https:\/\/github.com\/sendgrid\/sendgrid-java#with-mail-helper-class\" target=\"_blank\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/a>\u306e\u51e6\u7406\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u9001\u4fe1\u5143\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3001\u9001\u4fe1\u30e1\u30fc\u30eb\u306e\u30bf\u30a4\u30c8\u30eb\u3001\u5b9b\u5148\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3001\u30e1\u30fc\u30eb\u5185\u5bb9\u3092\u305d\u308c\u305e\u308c\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\njshell&gt; Email from = new Email(&quot;kikutaro_from@example.com&quot;)\r\nfrom ==&gt; com.sendgrid.Email@5f9d02cb\r\n\r\njshell&gt; String subject = &quot;SendGrid\u306eJava\u30e9\u30a4\u30d6\u30e9\u30ea \u3092\u5229\u7528\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1&quot;\r\nsubject ==&gt; &quot;SendGrid\u306eJava\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5229\u7528\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1&quot;\r\n\r\njshell&gt; Email to = new Email(&quot;kikutaro_to@example.com&quot;)\r\nto ==&gt; com.sendgrid.Email@23e028a9\r\n\r\njshell&gt; Content content = new Content(&quot;text\/plain&quot;, &quot;\u3053\u3093\u306b\u3061\u306f\uff01&quot;)\r\ncontent ==&gt; com.sendgrid.Content@5c5a1b69\r\n<\/pre>\n<p>\u8a18\u8ff0\u3084\u6587\u6cd5\u306e\u30df\u30b9\u304c\u3042\u308b\u3068\u3001\u305d\u306e\u5834\u3067\u30a8\u30e9\u30fc\u304c\u308f\u304b\u308a\u307e\u3059\u3057\u3001\u3053\u306e\u3088\u3046\u306b1\u884c1\u884c\u30b3\u30fc\u30c9\u306e\u610f\u5473\u3092\u78ba\u8a8d\u3057\u306a\u304c\u3089\u5199\u7d4c\u3057\u3066\u3001\u305d\u306e\u307e\u307e\u5b9f\u884c\u3067\u304d\u308b\u306e\u306f\u3068\u3066\u3082\u826f\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u4e0a\u8a18\u3067\u8a2d\u5b9a\u3057\u305f\u60c5\u5831\u304b\u3089Mail\u30af\u30e9\u30b9\u3001API Key\u304b\u3089SendGrid\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u305d\u308c\u305e\u308c\u751f\u6210\u3057\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u751f\u6210\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\njshell&gt; Mail mail = new Mail(from, subject, to, content)\r\nmail ==&gt; com.sendgrid.Mail@3901d134\r\n\r\njshell&gt; SendGrid sg = new SendGrid(&quot;***API Key\u3092\u5165\u529b***&quot;)\r\nsg ==&gt; com.sendgrid.SendGrid@169bb4dd\r\n\r\njshell&gt; Request request = new Request()\r\nrequest ==&gt; com.sendgrid.Request@2d0399f4\r\n\r\njshell&gt; request.method = Method.POST\r\n$9 ==&gt; POST\r\n\r\njshell&gt; request.endpoint = &quot;mail\/send&quot;\r\n$10 ==&gt; &quot;mail\/send&quot;\r\n\r\njshell&gt; request.body = mail.build()\r\n$11 ==&gt; &quot;{\\&quot;from\\&quot;:{\\&quot;email\\&quot;:\\&quot;kikutaro@example.com\\&quot;},\\&quot;subject\\&quot;:\\&quot;SendGrid\u306eJava\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5229\u7528\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\\&quot;,\\&quot;personalizations\\&quot;:&#x5B;{\\&quot;to\\&quot;:&#x5B;{\\&quot;email\\&quot;:\\&quot;kikutaro_to@example.com\\&quot;}]}],\\&quot;content\\&quot;:&#x5B;{\\&quot;type\\&quot;:\\&quot;text\/plain\\&quot;,\\&quot;value\\&quot;:\\&quot;\u3053\u3093\u306b\u3061\u306f\uff01\\&quot;}]}&quot;\r\n\r\njshell&gt; Response response = sg.api(request)\r\nresponse ==&gt; com.sendgrid.Response@21a21c64\r\n<\/pre>\n<p>response\u306b\u683c\u7d0d\u3055\u308c\u305f\u7d50\u679c\u3082\u305d\u306e\u5834\u3067\u8272\u3005\u306a\u5024\u3092\u81ea\u7531\u306b\u78ba\u8a8d\u3067\u304d\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\njshell&gt; System.out.println(response.statusCode)\r\n202\r\n\r\njshell&gt; System.out.println(response.headers)\r\n{X-Frame-Options=DENY, Server=nginx, Access-Control-Allow-Origin=https:\/\/sendgrid.api-docs.io, Access-Control-Allow-Methods=POST, Connection=keep-alive, X-Message-Id=9ewHvWI3SSGuwgPtLULW8A, X-No-CORS-Reason=https:\/\/sendgrid.com\/docs\/Classroom\/Basics\/API\/cors.html, Content-Length=0, Access-Control-Max-Age=600, Date=Tue, 28 Mar 2017 06:27:37 GMT, Access-Control-Allow-Headers=Authorization, Content-Type, On-behalf-of, x-sg-elas-acl, Content-Type=text\/plain; charset=utf-8}\r\n<\/pre>\n<p>\u4eca\u56de\u306f<a href=\"https:\/\/github.com\/sendgrid\/sendgrid-java\" target=\"_blank\">sendgrid-java<\/a>\u3092\u984c\u6750\u306bJShell\u3067\u306e\u5b9f\u884c\u3092\u8a66\u3057\u307e\u3057\u305f\u304c\u3001\u540c\u3058\u8981\u9818\u3067\u81ea\u7531\u306bJava\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u52d5\u4f5c\u78ba\u8a8d\u304c\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u662f\u975e\u30c8\u30e9\u30a4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SendGrid\u30b5\u30dd\u30fc\u30c8\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u83ca\u7530(@kikutaro_)\u3067\u3059\u3002\u65e9\u3044\u3082\u306e\u3067SendGrid\u30c1\u30fc\u30e0\u306b\u30b8\u30e7\u30a4\u30f3\u3057\u3066\u304b\u3089\u534a\u5e74\u304c\u7d4c\u3061\u307e\u3057\u305f\u3002\u4ee5\u524d\u3001\u958b\u767a\u8005\u3060\u3063\u305f\u3068\u304d\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u3057\u3066Java\u3092\u4e3b\u306b\u5229\u7528\u3057\u3066\u3044\u305f\u306e\u3067\u3059 <a class=\"read-more\" href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=7702\">&#8230;\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":9,"featured_media":7719,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-7702","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7702","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7702"}],"version-history":[{"count":20,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7702\/revisions"}],"predecessor-version":[{"id":7803,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7702\/revisions\/7803"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/7719"}],"wp:attachment":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}