mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 23:12:35 +00:00
init
This commit is contained in:
4
system/commands/common/storage/download-from-dropbox.sh
Normal file
4
system/commands/common/storage/download-from-dropbox.sh
Normal 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__'
|
6
system/commands/common/storage/upload-to-dropbox.sh
Normal file
6
system/commands/common/storage/upload-to-dropbox.sh
Normal file
@ -0,0 +1,6 @@
|
||||
curl --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__'
|
Reference in New Issue
Block a user