Skip to content

Commit

Permalink
由 lotify 產生 url,所以這邊不需要組裝
Browse files Browse the repository at this point in the history
  • Loading branch information
louis70109 committed Apr 30, 2020
1 parent eb0c8e7 commit e0d2a5b
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions templates/notify_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,9 @@
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<title>LINE Notify</title>
</head>
<body>
<button onclick="Auth();">點選這裡連結到LineNotify</button>
<button onclick="window.location.href = '{{auth_url}}';">點選這裡連結到LineNotify</button>
</body>
<script>
function Auth() {
var URL = 'https://notify-bot.line.me/oauth/authorize?';
URL += 'response_type=code';
URL += '&client_id={{CLIENT_ID}}';
URL += '&redirect_uri={{URI}}';
URL += '&scope=notify';
URL += '&state=nostate';
window.location.href = URL;
}
</script>
</html>

0 comments on commit e0d2a5b

Please sign in to comment.