use blade as conmmands template (#444)

* use blade as conmmands template

* fix lint

* fix ssl
This commit is contained in:
Saeed Vaziry
2025-01-27 21:27:58 +01:00
committed by GitHub
parent a73476c1dd
commit cdbde063f0
208 changed files with 1080 additions and 1012 deletions

View File

@ -0,0 +1,6 @@
curl --location --request POST 'https://api.dropboxapi.com/2/files/delete_v2' \
--header 'Authorization: Bearer {{ $token }}' \
--header 'Content-Type: application/json' \
--data-raw '{
"path": "{{ $src }}"
}'

View File

@ -0,0 +1,4 @@
curl -o {{ $dest }} --location --request POST 'https://content.dropboxapi.com/2/files/download' \
--header 'Accept: application/json' \
--header 'Dropbox-API-Arg: {"path":"{{ $src }}"}' \
--header 'Authorization: Bearer {{ $token }}'

View File

@ -0,0 +1,6 @@
curl -sb --location --request POST 'https://content.dropboxapi.com/2/files/upload' \
--header 'Accept: application/json' \
--header 'Dropbox-API-Arg: {"path":"{{ $dest }}"}' \
--header 'Content-Type: text/plain; charset=dropbox-cors-hack' \
--header 'Authorization: Bearer {{ $token }}' \
--data-binary '@{{ $src }}'