nos/reply_post

14 lines
275 B
Bash

#!/bin/bash
pid="${1}"; # post id passed from run
url="${2}"; # new url passed from run
RDR_AUTH=$(cat ./conf/auth.token);
curl "https://rdrama.net/comment" \
-X 'POST' \
-H "$RDR_AUTH" \
-d 'parent_fullname=p_'"$pid" \
-d 'submission='"$pid" \
-d 'body='"$url" \
--SILENT