-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathtmpl.go
More file actions
25 lines (24 loc) · 711 Bytes
/
tmpl.go
File metadata and controls
25 lines (24 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main
const authTmpl = `
<!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={{.ClientID}}';
URL += '&redirect_uri={{.CallbackURL}}';
URL += '&scope=notify';
URL += '&state=NO_STATE';
window.location.href = URL;
}
</script>
</head>
<body>
<button onclick="oAuth2();"> 連結到 LineNotify 按鈕 </button>
</body>
`