rsstootalizer/post_status.bash

4 lines
183 B
Bash
Executable File

#!/bin/bash
echo "${status}" | curl -sS -X POST --header "Authorization: Bearer ${1}" --header "Content-Type: application/json;charset=utf-8" "${2}/api/v1/statuses" -d@- 2>/dev/null