What’s wrong with my code in configuration.yaml ? I have been trying everything I could find or thought of to make it work but I am slowly giving up.
I am trying to change my slack status via Restful command.
Configuration.yaml
rest_command:
my_request:
url: https://slack.com/api/users.profile.set
method: POST
headers:
authorization: xoxp-XXXXX-XXXX-XXXX-XXX
accept: "application/json, text/html"
payload: '{"profile":{"status_text": "{{ status }}","status_emoji": "{{ emoji }}"}}'
content_type: "application/json; charset=utf-8"
verify_ssl: true
and what I try in service
service: rest_command.my_request
data:
status: My awesome status
emoji: ':sun:'