-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateRichMenuDataB.gs
More file actions
126 lines (123 loc) · 2.72 KB
/
Copy pathcreateRichMenuDataB.gs
File metadata and controls
126 lines (123 loc) · 2.72 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
function createRichMenuDataB() {
const width = 800;
const height = 540;
const section = width/3;
const height1 = 108;
const height2 = 216;
const area = 216;
return richMenuData = {
size: {
width: width,
height: height
},
selected: true,
name: 'リッチメニュー切り替え',
chatBarText: 'メニューを開く',
areas: [
{
bounds: {
x: 0,
y: 0,
width: width/2,
height: height1
},
action: {
"type": "richmenuswitch",
"richMenuAliasId": "richmenu-alias-a",
"data": "richmenu-changed-to-a"
}
},
{
bounds: {
x: width/2,
y: 0,
width: width/2,
height: height1
},
action: {
"type": "richmenuswitch",
"richMenuAliasId": "richmenu-alias-b",
"data": "richmenu-changed-to-b"
}
},
{
bounds: {
x: 0,
y: height1,
width: section,
height: area
},
action: {
"type": "uri",
"label": "数独アプリ",
"uri": "https://github.com/Mx244xt/first_sudoku"
}
},
{
bounds: {
x: section,
y: height1,
width: section,
height: area
},
action: {
"type": "uri",
"label": "猫アプリ",
"uri": "https://github.com/Mx244xt/cat-app"
}
},
{
bounds: {
x: section*2,
y: height1,
width: section,
height: area
},
action: {
"type": "uri",
"label": "リッチメニュー作成",
"uri": "https://github.com/Mx244xt/create_line_richmenu_change"
}
},
{
bounds: {
x: 0,
y: height2,
width: section,
height: area
},
action: {
"type": "uri",
"label": "Gmail→LINE通知",
"uri": "https://github.com/Mx244xt/Send-Gmail-to-LINE-using-GAS"
}
},
{
bounds: {
x: section,
y: height2,
width: section,
height: area
},
action: {
"type": "uri",
"label": "TODOアプリ",
"uri": "https://github.com/Mx244xt/react-todoapp"
}
},
{
bounds: {
x: section*2,
y: height2,
width: section,
height: area
},
action: {
"type": "uri",
"label": "Messaging API リファレンス",
"uri": "https://developers.line.biz/ja/reference/messaging-api/"
}
},
]
};
}