Skip to content

Instantly share code, notes, and snippets.

@poychang
Last active August 15, 2021 10:07
Show Gist options
  • Save poychang/61e48339d95f11fe94b86b136f87521f to your computer and use it in GitHub Desktop.
Save poychang/61e48339d95f11fe94b86b136f87521f to your computer and use it in GitHub Desktop.
LineNotify 連結頁面
<!DOCTYPE html>
<html lang="tw">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
function oAuth2() {
var URL = 'https://notify-bot.line.me/oauth/authorize?';
URL += 'response_type=code';
URL += '&client_id=[YOUR_CLIENT_ID]';
URL += '&redirect_uri=[YOUR_CALLBACK_URL]';
URL += '&scope=notify';
URL += '&state=NO_STATE';
window.location.href = URL;
}
</script>
</head>
<body>
<button onclick="oAuth2();"> 連結到 LineNotify 按鈕 </button>
</body>
</html>
@mr08781
Copy link

mr08781 commented Oct 24, 2018

<title></title> <script> function oAuth2() { var URL = 'https://notify-bot.line.me/oauth/authorize?'; URL += 'response_type=code'; URL += '&client_id=[GRB2g9bEs7d6PX9z8Uixk7]'; URL += '&redirect_uri=[http://localhost:3000/]'; URL += '&scope=notify'; URL += '&state=NO_STATE'; window.location.href = URL; } </script> 連結到 LineNotify 按鈕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment