{"id":5073,"date":"2018-09-26T09:00:32","date_gmt":"2018-09-26T00:00:32","guid":{"rendered":"http:\/\/www.mizutan.com\/wordpress\/?p=5073"},"modified":"2025-02-28T12:59:19","modified_gmt":"2025-02-28T03:59:19","slug":"post-5073","status":"publish","type":"post","link":"https:\/\/www.mizutan.com\/wordpress\/?p=5073","title":{"rendered":"\u30e9\u30ba\u30d1\u30a4\u3067\u5b9a\u6642\u306b\u30e9\u30f3\u30c0\u30e0\u306b\u30b9\u30c6\u30c3\u30ab\u30fc\u3092\u53d6\u51fa\u3057\u3066LINE Notify\u3078\u9001\u4ed8\u3059\u308b"},"content":{"rendered":"\n<p>\u4e45\u3005\u306e\u30e9\u30ba\u30d1\u30a4\u30cd\u30bf\u3067\u3059\u3002<br><br>\u4ee5\u524d\u3001\u300c<a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1069\" data-type=\"post\" data-id=\"1069\">\u30e9\u30ba\u30d1\u30a4\u304b\u3089curl\u30b3\u30de\u30f3\u30c9\u3067LINE Notify\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u30b9\u30c6\u30c3\u30ab\u30fc\u3092\u9001\u308b<\/a>\u300d\u3068\u3044\u3046\u8a18\u4e8b\u3092\u8f09\u305b\u307e\u3057\u305f\u3002<br><br>\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u305d\u306e\u8a18\u4e8b\u306f 2017\u5e74\uff17\u670822\u65e5\u306b\u30a2\u30c3\u30d7\u3057\u305f\u3093\u3067\u3059\u304c\u3001\u5185\u5bb9\u304c\u9673\u8150\u3060\u3063\u305f\u306e\u3067\u5c11\u3057\u624b\u3092\u5165\u308c\u3066\u898b\u3084\u3059\u304f\u3057\u307e\u3057\u305f\u3002<br><br>\u305d\u308c\u3092\u884c\u3063\u305f\u969b\u306b\u3001\u3053\u308c\u3092\u4f7f\u3063\u3066\u4f55\u304b\u3092\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u7acb\u3061\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- www_\u30a4\u30f3\u30c8\u30ed -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"1208333098\"\r\n     data-ad-format=\"rectangle\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u5b9a\u6642\u306b LINE \u3078\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4ed8<\/h2>\n\n\n\n<p>60\u723a\u306f\u3001\u672a\u3060\u306b\u6bce\u65e5\u304a\u4ed5\u4e8b\u3092\u3057\u3066\u304a\u308a\u307e\u3059\u3002<br><br>\u6642\u9593\u306f\u3001\uff19\u6642\u958b\u59cb\u300117\u664220\u5206\u7d42\u4e86\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u5b9a\u6642\uff08\u4ed5\u4e8b\u306e\u7d42\u4e8610\u5206\u524d\uff09\u306b\u3001\u3053\u306e\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u30b9\u30c6\u30c3\u30ab\u30fc\u3092\u9001\u4ed8\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br><br>\u3053\u308c\u3060\u3051\u3067\u306f\u3001\u5358\u7d14\u306b curl \u30b3\u30de\u30f3\u30c9\u3092\u66f8\u3051\u3070\u7d42\u308f\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3042\u307e\u308a\u9762\u767d\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u8272\u3005\u8003\u3048\u3066\u3044\u305f\u3089\u3001LINE Engineering BLOG \u306e\u8a18\u4e8b\u306e\u3053\u3053\u306b\u76ee\u304c\u884c\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background\">\u203b\u9001\u4fe1\u3067\u304d\u308bSticker\u306f\u3001<a href=\"https:\/\/notify-bot.line.me\/doc\/ja\/\" target=\"_blank\" rel=\"noreferrer noopener\">document<\/a>\u306b\u3082\u8a18\u8f09\u3057\u3066\u3042\u308a\u307e\u3059\u304cMessaging API\u3068\u540c\u3058\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001\u3053\u306e\u30da\u30fc\u30b8\u3092\u898b\u3066\u3044\u304f\u3068\u3001Sticker\u4e00\u89a7\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002\u304b\u306a\u308a\u306e\u6570\u306e\u30b9\u30c6\u30c3\u30ab\u30fc\u304c\u3042\u308a\u3001\u3053\u308c\u3092\u5229\u7528\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<br><br>\u305d\u3053\u3067\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u308b\u524d\u306b\u4e71\u6570\u3092\u767a\u751f\u3055\u305b\u3066\u3001\u305d\u306e\u65e5\u9001\u4ed8\u3059\u308b\u30b9\u30c6\u30c3\u30ab\u30fc\u3092\u6c7a\u5b9a\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306a\u3089\u3070\u3001\u5358\u7d14\u306b curl \u6587\u3092\u66f8\u304f\u3060\u3051\u3067\u306a\u3044\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u3057\u305f\u6687\u3064\u3076\u3057\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">python \u30d7\u30ed\u30b0\u30e9\u30e0\u4f5c\u6210<\/h2>\n\n\n\n<p>\u3055\u3066\u3001python \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u3053\u308d python \u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u5168\u304f\u89e6\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u3053\u3068\u3082\u3042\u308a\u3001\u4e00\u304b\u3089\u4f5c\u6210\u3059\u308b\u306e\u306b\u975e\u5e38\u306b\u82e6\u52b4\u3057\u307e\u3057\u305f\u3002<br><br>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4ed5\u69d8\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"has-light-green-cyan-background-color has-background\"><strong>\u4e71\u6570\u767a\u751f\u3000\u21d2\u3000\u30b9\u30c6\u30c3\u30ab\u30fc\uff29\uff24\u6c7a\u5b9a\u3000\u21d2\u3000curl \u30b3\u30de\u30f3\u30c9\u751f\u6210\u3000\u3000\u21d2\u3000curl \u30b3\u30de\u30f3\u30c9\u767a\u884c<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e71\u6570\u767a\u751f<\/h3>\n\n\n\n<p>\u4e71\u6570\u767a\u751f\u306e\u524d\u306b\u3001<strong>\u65e5\u4ed8\u304b\u3089\u66dc\u65e5\u304c\u571f\u65e5\u304b\u5224\u65ad\u3057\u3066\u3001\u305d\u306e\u5834\u5408\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d42\u4e86<\/strong>\u3055\u305b\u307e\u3059\u3002<br><br>\u571f\u65e5\u306f\u4f1a\u793e\u304c\u304a\u4f11\u307f\u3067\u3059\u306e\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4ed8\u306f\u4e0d\u8981\u3067\u3059\u3002\u5e74\u672b\u5e74\u59cb\u3084\u795d\u796d\u65e5\u3082\u9664\u304d\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u307e\u3042\u3001\u7de9\u304f\u9032\u3081\u308b\u306e\u3067\u4eca\u56de\u306f\u7121\u8996\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059^^;<br><br>\u5148\u307b\u3069\u306e Sticker\u4e00\u89a7\u3092\u307f\u3066\u3001STKID \u3092\u6d17\u3044\u51fa\u3057\u307e\u3057\u305f\u3002\u3053\u306e STKID \u3067\u3059\u304c\u3001\uff11\u304b\u3089\u59cb\u307e\u308a\u3001632 \u3067\u7d42\u308f\u308a\u307e\u3059\u3002\u3053\u306e\u305f\u3081\u3001\u4e71\u6570\u306f 632 \u307e\u3067\u767a\u751f\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b9\u30c6\u30c3\u30ab\u30fc\uff29\uff24\u6c7a\u5b9a<\/h3>\n\n\n\n<p>\u3055\u3066\u3001\u4e0a\u8a18\u3067\u8a00\u3063\u305f\u901a\u308a\u3001Sticker \u306f STKID \u3067\u3069\u306e img \u306a\u306e\u304b\u5224\u65ad\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u3053\u306e STKID \u306a\u3093\u3067\u3059\u304c\u3001\u5168\u90e8\u3067 632 \u500b\u3042\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br><br>\u305d\u3046\u3067\u3059\u3001\u6b20\u756a\u304c\u7d50\u69cb\u3042\u308b\u3093\u3067\u3059\u3002<br><br>\u305d\u306e\u305f\u3081\u3001\u4e71\u6570\u304c\u305d\u306e\u6b20\u756a\u3092\u53d6\u308a\u51fa\u3057\u305f\u5834\u5408\u306f\u3001\u518d\u5ea6\u4e71\u6570\u3092\u767a\u751f\u3055\u305b\u3066\u3001\u6709\u52b9\u306a\u30b9\u30c6\u30c3\u30ab\u30fc\u756a\u53f7\u3092\u53d6\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<br><br>\u8abf\u3079\u305f\u3068\u3053\u308d\u3001\u30b9\u30c6\u30c3\u30ab\u30fc\u306b\u306f\u6b21\u306e\u7bc4\u56f2\u306e\u756a\u53f7\u304c\u5b58\u5728\u3057\u307e\u3059\u3002\u6709\u52b9\u306a\u500b\u6570\u306f344\u500b\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"has-light-green-cyan-background-color has-background\"><strong>\u30001 \uff5e 47\u3001100 \uff5e 307\u3001401 \uff5e 430\u3001501 \uff5e 527\u3001601 \uff5e 632<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">curl \u30b3\u30de\u30f3\u30c9\u751f\u6210<\/h3>\n\n\n\n<p>STKID \u304c\u6c7a\u307e\u3063\u305f\u3089\u3001\u3053\u306e\u756a\u53f7\u3092 curl \u30b3\u30de\u30f3\u30c9\u306b\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">curl \u30b3\u30de\u30f3\u30c9\u767a\u884c<\/h3>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001curl \u30b3\u30de\u30f3\u30c9\u3092\u767a\u884c\u3057\u307e\u3059\u3002subprocess.call \u3067\u5b9f\u65bd\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"8169621401\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u30b3\u30de\u30f3\u30c9\u767a\u884c\u30c6\u30b9\u30c8<\/h2>\n\n\n\n<p>\u4f55\u3067 60\u723a\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308b\u3068\u554f\u984c\u304c\u8d77\u3053\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u307e\u30a2\u3001\u4f59\u308a\u7d20\u76f4\u306b\u52d5\u3044\u3066\u3082\u9762\u767d\u304f\u306a\u3044\u3093\u3067\u3059\u304c\u3001\u534a\u65e5\u3067\u7d42\u308f\u308a\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u306b\uff12\u65e5\u3082\u6642\u9593\u3092\u53d6\u3089\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br><br>\u8a18\u9332\u3092\u6b8b\u3057\u307e\u3059\u306e\u3067\u3001\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b9\u30c6\u30c3\u30ab\u30fc\u53d6\u5f97\u306b\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\u3082\u5fc5\u8981<\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u306b\u5bfe\u3057\u3066\u3001Invalid stickerId \u306a\u308b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>curl -X POST https:\/\/notify-api.ization: Bearer \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3&quot; -F &quot;message=\u3042\u306810 \u5206\u3067\u3001\u7d42\u4e86\u6642\u9593\u3067\u3059\uff01&quot; -F &quot;stickerPackageId=1&quot; -F &quot;stickerId=29&quot;<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{&quot;status&quot;:400,&quot;message&quot;:&quot;Invalid stickerId.&quot;}<\/code><\/pre><\/div>\n\n\n\n<p>\u6700\u521d\u3001\u4f55\u3092\u8a00\u3063\u3066\u3044\u308b\u306e\u304b\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u5148\u7a0b\u306e Sticker\u4e00\u89a7\u3092\u3088\u304f\u898b\u308b\u3068\u3001Sticker\u8b58\u5225\u5b50\uff08stickerId\uff09\u306e\u4ed6\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\uff08stickerPackageId\uff09\u306a\u308b\u3082\u306e\u304c\u5b58\u5728\u3057\u3066\u304a\u308a\u3001\u3053\u308c\u304c\u8aa4\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br><br>60\u723a\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\u306f\uff11\u3057\u304b\u306a\u3044\u3068\u52d8\u9055\u3044\u3057\u3066\u3044\u305f\u3093\u3067\u3059\u3002\u4eca\u56de\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\u3092\uff12\u306b\u3059\u308b\u3068\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002<br><br>\u3046\u30fc\u30fc\u3093\uff01\u307e\u3055\u304b\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\u306b\uff11\u4ee5\u5916\u304c\u5165\u3063\u3066\u304f\u308b\u3068\u306f\u601d\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002Sticker\u4e00\u89a7\u3092\u898b\u76f4\u3057\u305f\u3068\u3053\u308d\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\u306b\u306f\uff11\uff5e\uff14\u304c\u5165\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<br><br>\u3055\u3089\u306b\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\u3068Sticker\u8b58\u5225\u5b50\u306e\u95a2\u4fc2\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\uff11\u30001 \uff5e 17\u300121\u3001100 \uff5e 139\u3001401 \uff5e 430<\/strong><\/li>\n\n\n\n<li><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\uff12\u300018 \uff5e 20\u300122 \uff5e 47\u3001140 \uff5e 179\u3001501 \uff5e 527<\/strong><\/li>\n\n\n\n<li><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\uff13\u3000189 \uff5e 259<\/strong><\/li>\n\n\n\n<li><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u8b58\u5225\u5b50\uff14\u3000260 \uff5e 307\u3001601 \uff5e 632<\/strong><\/li>\n<\/ul>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"9186857477\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div>\n\n\n\n\n<h3 class=\"wp-block-heading\">subprocess.call\u3067\u30a8\u30e9\u30fc\u767a\u751f<\/h3>\n\n\n\n<p>\u3055\u3066\u3001\u4e0a\u8a18\u306e\uff12\u3064\u306e\u8b58\u5225\u5b50\u306e\u53d6\u308a\u8fbc\u307f\u3092\u7d42\u308f\u308a\u3001curl\u30b3\u30de\u30f3\u30c9\u306e\u7d44\u307f\u7acb\u3066\u3082\u5b8c\u4e86\u3057\u3001\u30b3\u30de\u30f3\u30c9\u767a\u884c\u3092\u3057\u305f\u3068\u3053\u308d\u3001\u3046\u307e\u304f\u3044\u304b\u305a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{&quot;status&quot;:401,&quot;message&quot;:&quot;Missing authorization header&quot;}\ncurl: (6) Could not resolve host: Bearer\ncurl: (6) Could not resolve host: \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3&quot;\ncurl: (6) Could not resolve host: xn--!&quot;-nxxxxxxxxxxxxxx<\/code><\/pre><\/div>\n\n\n\n<p>\u5b9f\u969b\u3001\u4f5c\u6210\u3057\u305fcurl\u6587\u306f\u3053\u308c\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>curl -X POST https:\/\/notify-api.line.me\/api\/notify -H &#39;Authorization: Bearer vWjkChWETa5qPezWZr09KzWa520rlaxpCfyQKqEMUF4&#39; -F &#39;message=\u3042\u306810 \u5206\u3067\u3001\u7d42\u4e86\u6642\u9593\u3067\u3059 \uff01&#39; -F &#39;stickerPackageId=1&#39; -F &#39;stickerId=125&#39;<\/code><\/pre><\/div>\n\n\n\n<p>\u3069\u3046\u3044\u3046\u8a33\u304b\u3001\u3053\u306ecurl\u30b3\u30de\u30f3\u30c9\u3060\u3051\u3092\u5207\u308a\u53d6\u3063\u3066\u6d41\u3059\u3068\u6b63\u5e38\u306b\u6d41\u308c\u307e\u3059\uff01\uff01<br><br>\u4e0a\u8a18\u3001401\u306e\u30a8\u30e9\u30fc\u3092\u691c\u7d22\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u89e3\u6c7a\u6cd5\u304c\u51fa\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-pale-cyan-blue-background-color has-background\">\u3053\u308c\u3067\u3059\u304c\u3001\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u306a\u304f\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u56f2\u3080\u3068\u89e3\u6c7a\u3057\u305f\u306e\u3067\u3001\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002 <\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u306a\u304f\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u5909\u66f4\u3057\u3066\u3082\u3001\u30a8\u30e9\u30fc\u306f\u5168\u304f\u540c\u3058\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>curl -X POST https:\/\/notify-api.line.me\/api\/notify -H &quot;Authorization: Bearer \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3&quot; -F &quot;message=\u3042\u306810 \u5206\u3067\u3001\u7d42\u4e86\u6642\u9593\u3067\u3059 \uff01&quot; -F &quot;stickerPackageId=1&quot; -F &quot;stickerId=10&quot;<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{&quot;status&quot;:401,&quot;message&quot;:&quot;Missing authorization header&quot;}\ncurl: (6) Could not resolve host: Bearer\ncurl: (6) Could not resolve host: \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3&quot;\ncurl: (6) Could not resolve host: xn--!&quot;-nxxxxxxxxxxxxxx<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b7\u30a7\u30eb\u3067\u5bfe\u5fdc\u3057\u3088\u3046\u3068\u3057\u305f\u304c\u3001\u30fb\u30fb\u30fb\u30fb<\/h3>\n\n\n\n<p>\u8a33\u306e\u5206\u304b\u3089\u3093\u30a8\u30e9\u30fc\u3067\u5148\u306b\u9032\u3081\u306a\u3044\u306e\u3067\u3001\u30b7\u30a7\u30eb\u3067\u51fa\u6765\u306a\u3044\u304b\u53ef\u80fd\u6027\u3092\u63a2\u308a\u307e\u3057\u305f\u3002\u4e0b\u8a18\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>#!#!\/bin\/sh\nPaPckageId=`expr $1`\nstickerId=`expr $2`\ncurl -X POST https:\/\/notify-api.line.me\/api\/notify -H &#39;Authorization: Bearer \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3&#39; -F &#39;message=test&#39; -F &#39;stickerPackageId=${PackageId}&#39; -F &#39;stickerId=${stickerId}&#39;<\/code><\/pre><\/div>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u5b9f\u884c\u3059\u308b\u3068\u6b21\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{&quot;status&quot;:400,&quot;message&quot;:&quot;StickerPackageId must be number value.&quot;}<\/code><\/pre><\/div>\n\n\n\n<p>StickerPackageId \u306f\u6570\u5024\u306b\u3057\u308d\u306a\u3093\u3066\u8a00\u308f\u308c\u307e\u3057\u305f\u3002<br><br>\u8abf\u3079\u308b\u3068\u3001\u30b7\u30a7\u30eb\u306e\u5f15\u6570\u306f\u6587\u5b57\u5217\u306a\u3093\u3067\u3059\u306d\u3002\u6587\u5b57\u5217\u3092\u6570\u5b57\u306b\u3067\u304d\u306a\u3044\u304b\u683c\u95d8\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u3082\u8ae6\u3081\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- www_\u8a18\u4e8b\u4e2d\uff13 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"8208817721\"\r\n     data-ad-format=\"rectangle\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">os\u95a2\u6570\u3092\u4f7f\u7528\u3057\u305f\u3089\u89e3\u6c7a<\/h2>\n\n\n\n<p>\u7d50\u5c40\u3001python\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u623b\u308a\u3001subprocess.call\u306e\u4ee3\u308f\u308a\u306b\u3001os.system\u3092\u4f7f\u7528\u3057\u305f\u3089\u3001\u3042\u3063\u3055\u308a\u3068\u89e3\u6c7a\u3057\u3001\u30b3\u30de\u30f3\u30c9\u767a\u884c\u3082\u7121\u4e8b\u7d42\u308f\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"344\" height=\"255\" src=\"https:\/\/www.mizutan.com\/wordpress\/wp-content\/uploads\/2018\/09\/curl_2.jpg\" alt=\"\" class=\"wp-image-11947\" srcset=\"https:\/\/www.mizutan.com\/wordpress\/wp-content\/uploads\/2018\/09\/curl_2.jpg 344w, https:\/\/www.mizutan.com\/wordpress\/wp-content\/uploads\/2018\/09\/curl_2-300x222.jpg 300w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/figure>\n<\/div>\n\n\n<p>\u5148\u7a0b\u307e\u3067\u306e\u683c\u95d8\u306f\u4f55\u3060\u3063\u305f\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<br><br>\u307e\u3042\u3001\u3068\u3082\u3042\u308c\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u5b8c\u6210\u3057\u307e\u3057\u305f\u3002<br><br>\u3042\u3068\u306f\u3001\u796d\u65e5\u3082\u571f\u65e5\u3068\u540c\u3058\u3088\u3046\u306b\u3059\u308b\u3068\u304b\u8003\u3048\u3089\u308c\u307e\u3059\u304c\u3001\u3072\u3068\u307e\u305a\u3001crontab \u306717\u664210\u5206\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<br><br>\u6700\u5f8c\u306b\u3001\u7a1a\u62d9\u3067\u3059\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u516c\u958b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import random\nimport os\nimport datetime\nimport sys\n#import subprocessdef rdm_return():#\u30b9\u30c6\u30c3\u30ab\u30fcNo.\u53d6\u5f97\n    rdm = random.randrange(632) #\u4e71\u6570\u767a\u751f\n    if rdm &gt;= 1 and rdm &lt;= 47 : pass\n       elif rdm &gt;= 100 and rdm &lt;= 307 : pass\n       elif rdm &gt;= 401 and rdm &lt;= 430 : pass\n       elif rdm &gt;= 501 and rdm &lt;= 527 : pass\n       elif rdm &gt;= 601 and rdm &lt;= 632 :\n           pass\n    else:\n           rdm = 0    return(rdm)def STKPKGID_return(STKID):\n #\u30b9\u30c6\u30c3\u30ab\u30fc\uff29\uff24\u53d6\u5f97\n    STKPKGID = 1\n    if STKID &gt;= 1 and STKID &lt;= 17      : pass\n    elif STKID == 21                   : pass\n    elif STKID &gt;= 100 and STKID &lt;= 139 : pass\n    elif STKID &gt;= 401 and STKID &lt;= 430 :\n        pass\n    elif STKID &gt;= 189 and STKID &lt;= 259 :\n        STKPKGID = 3\n    elif STKID &gt;= 260 and STKID &lt;= 307 :\n        STKPKGID = 4\n    elif STKID &gt;= 601 and STKID &lt;= 632 :\n        STKPKGID = 4\n    else\n        STKPKGID = 2\n    return(STKPKGID)\n\n#\u30d7\u30ed\u30b0\u30e9\u30e0\u958b\u59cb\n\ntoday = datetime.date.today() # \u73fe\u5728\u306e\u65e5\u4ed8\u3092\u53d6\u5f97\nif today.weekday() == 5 or today.weekday() == 6 :\n   sys.exit()\n\nsticker_no = 0\nwhile sticker_no == 0 :\n   sticker_no = rdm_return()\n   print(sticker_no)sticker_id = STKPKGID_return(sticker_no)\n\n# \u30b3\u30de\u30f3\u30c9\u4f5c\u6210\n#cmd1 = &quot;curl -X POST https:\/\/notify-api.line.me\/api\/notify -H &#39;Authorization: Bearer \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3&#39; -F &#39;message=\u3042\u306810 \u5206\u3067\u3001\u7d42\u4e86\u6642\u9593\u3067\u3059\uff01&#39; -F &#39;stickerPackageId=&quot;\ncmd1 = &#39;curl -X POST https:\/\/notify-api.line.me\/api\/notify -H &quot;Authorization: Bearer \u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3&quot; -F &quot;message=\u3042\u306810 \u5206\u3067\u3001\u7d42\u4e86 \u6642\u9593\u3067\u3059\uff01&quot; -F &quot;stickerPackageId=&#39;\ncmd2 = &#39;&quot; -F &quot;stickerId=&#39;\ncmd3 = &#39;&quot;&#39;\ncmd = cmd1 + str(sticker_id) + cmd2 + str(sticker_no) + cmd3\n\n# \u30b3\u30de\u30f3\u30c9\u767a\u884c\n#subprocess.call(cmd.split())\nos.system(cmd)\nprint(cmd)<\/code><\/pre><\/div>\n\n\n\n<p>2020\u5e74\uff18\u6708\u672b\u3067\u73fe\u5f79\u3092\u9000\u304d\u307e\u3057\u305f\u3002\u3053\u306e\u305f\u3081\u3001\u30b9\u30c6\u30c3\u30ab\u30fc\u9001\u4ed8\u306f\u7d42\u4e86\u3057\u3066\u3001\u4eca\u3067\u306f\u5b9a\u6642\u306b\u5929\u6c17\u4e88\u5831\u3092\u9001\u4ed8\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=10119\" data-type=\"post\" data-id=\"10119\">Python\u3067\u5929\u6c17\u60c5\u5831\u3092\u53d6\u5f97\u3057LINE Notify\u306b\u9001\u4ed8\u3059\u308b<\/a><\/p>\n\n\n\n<p>\u203b\u30e9\u30ba\u30d1\u30a4\u306e\u30ab\u30c6\u30b4\u30ea\u300cTIPS\u300d\u306e\u8a18\u4e8b\u7fa4\u3067\u3059\u30028\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=12349\" target=\"_blank\" rel=\"noreferrer noopener\">openweathermap\u306e\u5929\u6c17\u4e88\u5831\u3092LINE Notify\u306b\u8868\u793a<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=10119\" data-type=\"post\" data-id=\"10119\" target=\"_blank\" rel=\"noreferrer noopener\">\u53d6\u5f97\u3057\u305f\u4eca\u65e5\u660e\u65e5\u306e\u5929\u6c17\u4e88\u5831\u3092Python\u3067LINE Notify\u306b\u9001\u4ed8<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=9362\" data-type=\"post\" data-id=\"9362\" target=\"_blank\" rel=\"noreferrer noopener\">\u30e9\u30ba\u30d1\u30a4\u3092\u4f7f\u7528\u3057\u3066WEB\u30ab\u30e1\u30e9\u3067\u52d5\u753b\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3092\u3084\u3063\u3066\u307f\u308b<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=2055\" data-type=\"post\" data-id=\"2055\" target=\"_blank\" rel=\"noreferrer noopener\">SSH\u63a5\u7d9a\u3067\u767a\u751f\u3057\u305fWARNING \u306e\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5\uff01REMOTE HOST IDENTIFICATION HAS CHANGED!<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1368\" data-type=\"post\" data-id=\"1368\" target=\"_blank\" rel=\"noreferrer noopener\">web\u30ab\u30e1\u30e9\u3092\u8cfc\u5165\u3057\u305f\uff01motion\u3092\u4f7f\u3063\u3066\u76e3\u8996\u30ab\u30e1\u30e9\u306b\u3057\u3066\u307f\u305f<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1069\" data-type=\"post\" data-id=\"1069\" target=\"_blank\" rel=\"noreferrer noopener\">\u30e9\u30ba\u30d1\u30a4\u304b\u3089curl\u30b3\u30de\u30f3\u30c9\u3067LINE Notify\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u30b9\u30c6\u30c3\u30ab\u30fc\u3092\u9001\u308b<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1109\" data-type=\"post\" data-id=\"1109\" target=\"_blank\" rel=\"noreferrer noopener\">raspberrypi gui\u304b\u3089cui\u3078\u306e\u5207\u66ff\uff01\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u306e\u6f22\u5b57\u8868\u793a\u89e3\u6c7a<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=174\" data-type=\"post\" data-id=\"174\" target=\"_blank\" rel=\"noreferrer noopener\">\u30e9\u30ba\u30d1\u30a4\u306e\u30e6\u30fc\u30b6\u540d(ID)\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u78ba\u8a8d\u3068\u5909\u66f4\u65b9\u6cd5\u3092\u7dcf\u7279\u96c6\uff01<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4e45\u3005\u306e\u30e9\u30ba\u30d1\u30a4\u30cd\u30bf\u3067\u3059\u3002 \u4ee5\u524d\u3001\u300c\u30e9\u30ba\u30d1\u30a4\u304b\u3089curl\u30b3\u30de\u30f3\u30c9\u3067LINE Notify\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u30b9\u30c6\u30c3\u30ab\u30fc\u3092\u9001\u308b\u300d\u3068\u3044\u3046\u8a18\u4e8b\u3092\u8f09\u305b\u307e\u3057\u305f\u3002 \u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u305d\u306e\u8a18\u4e8b\u306f 2017\u5e74\uff17\u670822\u65e5\u306b\u30a2\u30c3\u30d7\u3057\u305f\u3093\u3067\u3059\u304c\u3001\u5185\u5bb9\u304c\u9673 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11948,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[281],"tags":[312],"class_list":["post-5073","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rasp_tips","tag-line-notify"],"_links":{"self":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5073"}],"version-history":[{"count":20,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5073\/revisions"}],"predecessor-version":[{"id":29222,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5073\/revisions\/29222"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/11948"}],"wp:attachment":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}