Skip to content

Instantly share code, notes, and snippets.

@letswritetw
Last active March 10, 2024 14:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letswritetw/af7991b2375975a1c161439125284df1 to your computer and use it in GitHub Desktop.
Save letswritetw/af7991b2375975a1c161439125284df1 to your computer and use it in GitHub Desktop.
line-rich-menu
curl -v -X POST https://api.line.me/v2/bot/richmenu \
-H 'Authorization: Bearer {token}' \
-H 'Content-Type: application/json' \
-d \
'{
"size": {
"width": 2500,
"height": 843
},
"selected": false,
"name": "richmenu-demo-1",
"chatBarText": "LINE圖文選單範例",
"areas": [
{
"bounds": {
"x": 0,
"y": 0,
"width": 833,
"height": 843
},
"action": {
"type": "message",
"label": "文字",
"text": "Hello, World!"
}
},
{
"bounds": {
"x": 833,
"y": 0,
"width": 833,
"height": 843
},
"action": {
"type": "uri",
"label": "網址",
"uri": "https://medium.com/@augustus0818/line-bot-rich-menu-aa5fa67ac6ae"
}
},
{
"bounds": {
"x": 1666,
"y": 0,
"width": 833,
"height": 843
},
"action": {
"type": "location",
"label": "位置"
}
}
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment