Advertisement
xangin

Line push rest command

Apr 8th, 2023
909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.39 KB | None | 0 0
  1. rest_command:
  2.   linebot_message:  
  3.     url: 'https://api.line.me/v2/bot/message/push'
  4.     method: POST
  5.     content_type: 'application/json'
  6.     headers:
  7.       Authorization: !secret linebot_token_rest
  8.     payload: '{
  9.         "to" : "{{ who }}",
  10.         "messages":[
  11.             {
  12.                 "type":"text",
  13.                 "text":"{{ msg_text }}"
  14.             }
  15.         ]
  16.       }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement