API - Slack

Post to channel:

curl -X POST \
     -H "Authorization: Bearer xxx" \
     -H "Content-type: application/json; charset=utf-8" \
    --data '{"channel": "xxx", "text":"We'\''ve xxx, <@UF7BMAWCT>, xxx:\n>xxx: xxx", "username":"xxx", "icon_emoji":":xxx:"}' \
https://slack.com/api/chat.postMessage

Read public channel:

curl -s https://slack.com/api/channels.history\?token\=xxx\&channel\=Cxxx\&pretty\=1

Read private channel:

curl -s https://slack.com/api/groups.history\?token\=xxx\&channel\=Gxxx\&pretty\=1