export instance to .env and make .env-example
This commit is contained in:
parent
b66ec3ca1f
commit
8797d25b56
2 changed files with 3 additions and 1 deletions
2
.env-example
Normal file
2
.env-example
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
UserToken='***'
|
||||
TargetInstance='***'
|
||||
2
main.sh
2
main.sh
|
|
@ -11,7 +11,7 @@ result=$(curl -X POST \
|
|||
-H "Authorization: Bearer ${Authorization}" \
|
||||
-H "Idempotency-Key: ${IdempotencyKey}" \
|
||||
-d "status=${status}" \
|
||||
"https://mastodon.giftedmc.com/api/v1/statuses") # HTTP/1.1
|
||||
"${TargetInstance}/api/v1/statuses") # HTTP/1.1
|
||||
|
||||
echo "${result}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue