mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
refactoring
This commit is contained in:
4
resources/commands/storage/download-from-dropbox.sh
Normal file
4
resources/commands/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
resources/commands/storage/upload-to-dropbox.sh
Normal file
6
resources/commands/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