{"id":947,"date":"2018-10-23T21:25:34","date_gmt":"2018-10-23T12:25:34","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=947"},"modified":"2021-10-28T16:35:43","modified_gmt":"2021-10-28T07:35:43","slug":"url%e3%81%ab%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%81%97%e3%81%9f%e3%82%89line%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b-php-line-nofity","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=947","title":{"rendered":"PHP\u3067URL\u304b\u3089LINE\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\uff08LINE nofity\uff09"},"content":{"rendered":"<p>LINE nofity\u3092\u4f7f\u7528\u3057\u3001PHP\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067URL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3089LINE nofity\u306eAPI\u3092\u7d4c\u7531\u3057\u3066LINE\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3001\u3068\u3044\u3046\u3053\u3068\u3092\u3057\u3066\u307f\u305f\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>PHP\u306bHTTP GET\u3057\u305f\u3089LINE notify\u3067LINE\u3092\u9001\u308b\u3001\u3063\u3066\u3053\u3068\u3092\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><img src=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_1eb524ac-3f83-419a-a53d-287c0ae496d6.png\" alt=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_1eb524ac-3f83-419a-a53d-287c0ae496d6.png\"><\/p>\n<pre><code>\n&lt;h1&gt;LINE notify app&lt;\/h1&gt;\n&lt;p&gt;\n  Send message via LINE notify.\n&lt;\/p&gt;\n\n&lt;?php\n\n$i = function ($v) { return $v; };\n\nexec(\"curl https:\/\/notify-api.line.me\/api\/notify -X POST -H 'Authorization: Bearer YOUR_LINE_NOTIFY_API_KEY ' -F 'message={$i($_GET['ms'])}'\", $output) ;\n\necho \"&lt;h2&gt;output&lt;\/h2&gt;\" ;\n\necho \"&lt;pre&gt;\" ;\necho var_dump($output) ;\necho \"&lt;\/pre&gt;\" ;\n\n\/\/ echo var_dump($_GET[\"ms\"])\n\n<\/code><\/pre>\n<p>YOUR_LINE_NOTIFY_API_KEY\u3092\u5909\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u3053\u306ePHP\u30d5\u30a1\u30a4\u30eb\u306b\u30d6\u30e9\u30a6\u30b6\u306a\u3069\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001<\/p>\n<p>URL\u306e\u4f8b<\/p>\n<pre><code>http:\/\/exapmle.com\/lineapp\/?ms=hogehoge\n<\/code><\/pre>\n<p>hogehoge\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u5c4a\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LINE nofity\u3092\u4f7f\u7528\u3057\u3001PHP\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067URL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3089LINE nofity\u306eAPI [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-fh","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/947"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=947"}],"version-history":[{"count":3,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/947\/revisions"}],"predecessor-version":[{"id":3198,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/947\/revisions\/3198"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}