{"id":2569,"date":"2020-11-12T02:01:24","date_gmt":"2020-11-11T17:01:24","guid":{"rendered":"https:\/\/took.jp\/?p=2569"},"modified":"2020-11-23T14:03:12","modified_gmt":"2020-11-23T05:03:12","slug":"uwsc-%e4%bd%9c%e6%a5%ad%e7%b5%82%e4%ba%86%e9%80%9a%e7%9f%a5%e3%82%92curl%e3%81%8b%e3%82%89line%e3%81%ab%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/took.jp\/tech-blog\/uwsc-%e4%bd%9c%e6%a5%ad%e7%b5%82%e4%ba%86%e9%80%9a%e7%9f%a5%e3%82%92curl%e3%81%8b%e3%82%89line%e3%81%ab%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b\/","title":{"rendered":"UWSC \u4f5c\u696d\u7d42\u4e86\u901a\u77e5\u3092curl\u304b\u3089LINE\u306b\u9001\u4fe1\u3059\u308b"},"content":{"rendered":"<h2>UWSC \u4f5c\u696d\u7d42\u4e86\u901a\u77e5\u3092curl\u304b\u3089LINE\u306b\u9001\u4fe1\u3059\u308b<\/h2>\n<p>\u4ee4\u548c\u306b\u5165\u3063\u3066uwsc\u306e\u8a18\u4e8b\u3068\u3044\u3046\u306e\u3082\u3001\u5909\u306a\u611f\u3058\u304c\u3057\u307e\u3059\u304c\u3001\u500b\u4eba\u7684\u306a\u8da3\u5473\u3067\u672a\u3060\u306b\u73fe\u5f79\u3067\u3059\u3002<\/p>\n<p>uwsc\u3067\u5b9f\u884c\u3057\u305f\u4f5c\u696d\u306e\u9032\u6357\u7387\u7b49\u304c\u5916\u51fa\u4e2d\u306b\u3082\u308f\u304b\u308b\u3068\u826f\u3044\u306a\u3068\u8003\u3048\u3001LINE\u306b\u901a\u77e5\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u304a\u304a\u307e\u304b\u306a\u6d41\u308c\u3068\u3057\u3066\u306f\u3001\u30d0\u30c3\u30c1\u3067curl\u3092\u5b9f\u884c\u3057\u3001LINE\u306b\u901a\u77e5\u3059\u308b\u51e6\u7406\u3092\u66f8\u304d\u3001uwsc\u306eDOSCMD\u95a2\u6570\u3067\u5b9f\u884c\u3059\u308b\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>LINE notify\u306e\u30c8\u30fc\u30af\u30f3\u53d6\u5f97<\/h3>\n<p>\u307e\u305a\u3001LINE\u3067\u300c<strong>UWSC notify<\/strong>\u300d\u3068\u3044\u3046\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3001LINE notify\u3068\u3044\u3046\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u30e1\u30f3\u30d0\u30fc\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>LINE notify\u3068\u3044\u3046\u516c\u5f0f\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u53cb\u9054\u306b\u306a\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u3001\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/notify-bot.line.me\/ja\/\" target=\"_blank\" rel=\"noopener noreferrer\">LINE notify\u30b5\u30a4\u30c8\u30ea\u30f3\u30af<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u53d6\u5f97\u3057\u305f\u30c8\u30fc\u30af\u30f3\u306f\u7121\u304f\u3055\u306a\u3044\u3088\u3046\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u30d0\u30c3\u30c1\u306b\u51e6\u7406\u3092\u8a18\u8ff0<\/h3>\n<p>\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u51e6\u7406\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>\u79c1\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u300c<strong>uwsc_line_notify.bat<\/strong>\u300d\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><strong>[token]<\/strong>\u3068\u3044\u3046\u90e8\u5206\u306f\u3001\u5148\u307b\u3069\u767a\u884c\u3057\u305f\u30c8\u30fc\u30af\u30f3\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-other\">@echo off\r\nset token=[token]\r\ncurl -X POST -H \"Authorization: Bearer %token%\" -F \"message=%1\" https:\/\/notify-api.line.me\/api\/notify<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u306e\u7b2c\u4e00\u5f15\u6570\u306b\u6e21\u3057\u305f\u5185\u5bb9\u306f\u305d\u306e\u307e\u307e\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3057\u3066\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>UWSC\u306b\u51e6\u7406\u3092\u8ffd\u8a18<\/h3>\n<p>\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u3001\u5f15\u6570\u306b\u9001\u4fe1\u3057\u305f\u3044\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6e21\u3057\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u4e0b\u8a18\u306e\u3088\u3046\u306b\u56fa\u5b9a\u3067\u3042\u308c\u3070\u3001\u30d0\u30c3\u30c1\u5185\u306b\u305d\u306e\u307e\u307e\u66f8\u3044\u3066\u3057\u307e\u3063\u305f\u65b9\u304c\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u9032\u6357\u7387\u306b\u3088\u308a\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u3001\u3053\u306e\u3088\u3046\u306a\u5f62\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-markup\">DOSCMD(\"path\\to\\uwsc_line_notify.bat \" + \"<span>Work is finished<\/span>\")<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u8ffd\u8a18<\/strong><\/p>\n<p>\u65e5\u672c\u8a9e\u3092\u9001\u4fe1\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u6587\u5b57\u5316\u3051\u304c\u8d77\u3053\u3063\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>UTF-8\u3067\u4fdd\u5b58\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u6587\u5b57\u5217\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u304c\u89e3\u6c7a\u6848\u3068\u3057\u3066\u63d0\u793a\u3055\u308c\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3082\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u4e00\u90e8\u6587\u5b57\u5316\u3051\u3092\u8d77\u3053\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u89e3\u6c7a\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044\u3046\u3061\u306f\u3001\u65e5\u672c\u8a9e\u3092\u4f7f\u7528\u3057\u306a\u3044\u306e\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>UWSC \u4f5c\u696d\u7d42\u4e86\u901a\u77e5\u3092curl\u304b\u3089LINE\u306b\u9001\u4fe1\u3059\u308b \u4ee4\u548c\u306b\u5165\u3063\u3066uwsc\u306e\u8a18\u4e8b\u3068\u3044\u3046\u306e\u3082\u3001\u5909\u306a\u611f\u3058\u304c\u3057\u307e\u3059\u304c\u3001\u500b\u4eba\u7684\u306a\u8da3\u5473\u3067\u672a\u3060\u306b\u73fe\u5f79\u3067\u3059\u3002 uwsc\u3067\u5b9f\u884c\u3057\u305f\u4f5c\u696d\u306e\u9032\u6357\u7387\u7b49\u304c\u5916\u51fa\u4e2d\u306b\u3082\u308f\u304b\u308b\u3068\u826f\u3044\u306a\u3068\u8003\u3048\u3001LINE\u306b\u901a\u77e5\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u2026<\/p>\n","protected":false},"author":3,"featured_media":2570,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,102],"tags":[],"class_list":["post-2569","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-batch","category-uwsc"],"_links":{"self":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/posts\/2569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/comments?post=2569"}],"version-history":[{"count":0,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/posts\/2569\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/media\/2570"}],"wp:attachment":[{"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/media?parent=2569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/categories?post=2569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/took.jp\/tech-blog\/wp-json\/wp\/v2\/tags?post=2569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}