Giter VIP home page Giter VIP logo

dropbox-api-spec's Introduction

Logo

The offical Dropbox API Spec.

SDKs

We have a variety of SDKs available for you to use that are based off this spec.

Getting Help

If you find a bug, please see CONTRIBUTING.md for information on how to report it.

If you need help that is not specific to the API Spec, please reach out to Dropbox Support.

License

The API Spec is distributed under the MIT license, please see LICENSE for more information.

dropbox-api-spec's People

Contributors

braincore avatar brent1lt avatar bzhang-dbx avatar eugeneyche avatar jiuyangzhao avatar karandeep-johar avatar mover333 avatar mtruong-dbx avatar risforrob avatar rogebrd avatar sderickson avatar svpranay avatar yuxiang-he avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dropbox-api-spec's Issues

Adding an "overwrite" option when copying files

This feature request is related to files/copy end point. Currently there is no option to overwrite a file if it already exists, when copying file from somewhere to another.

Why is this feature valuable to you? Does it solve a problem you're having?
It is a common occurrence that when copying a file to somewhere, the file might already exist in the target path. For example we have an automation script which backs up some files every night by copying them from one folder to the another folder, but the folder we are copying to every night, stays the same. So the files already exist in the target folder, but we want them to be overwritten every night.

Describe the solution you'd like
Just like in the files/upload end point, a "mode" parameter which would allow us to overwrite the target file (if exists) would make things very convenient.

Describe alternatives you've considered
We are currently first checking if the file exists, if it exists we delete the file, and then we copy it. So we need to send 3 different requests instead of 1. Also one of the requests is relatively dangerous one (delete), which might cause other issues in the future, like accidentally deleting a file/folder.

list_folder_continue: path_display doesn't respect capital letter in path for FileMetadata object

Hi I am using webhook and then calling list_folder_continue to get modified data. However path_display is different for Foldermetadata and FileMetada for each entry.

dbx = dropbox.Dropbox(token)
result = dbx.files_list_folder_continue(cursor)

for entry in result.entries:
    print (entry)
    if (isinstance(entry, FolderMetadata)):
        print (entry.path_display)   
    
    if (isinstance(entry, FileMetadata)):                
        print (entry.path_display)

Lets say I uploaded a folder to Documents/Test/ which contains a test.txt file

Documents
    Test
        test.txt

The output of above is:
FolderMetadata(name='Test', id='id:7KpyMyVCGTAAAAAAAAAAGg', path_lower='/documents/test', path_display='/Documents/Test', parent_shared_folder_id='1189873249')

FileMetadata(name='test.txt', id='id:7KpyMyVCGTAAAAAAAAAAGg', path_lower='/documents/test/test.txt', path_display='/Documents/test/test.txt')

Notice how path_display is returning folder test and not Test for FileMetadata. According to v2 api path_display should respect capital letter in folder name.

Dropbox upload with mute: true does not work

If I use the curl example from the dropbox api spec replacing "mute": false by "mute": true

curl -X POST https://content.dropboxapi.com/2/files/upload
--header "Authorization: Bearer "
--header "Dropbox-API-Arg: {"path": "/Homework/math/Matrices.txt","mode": "add","autorename": true,"mute": true}"
--header "Content-Type: application/octet-stream"
--data-binary @local_file.txt

the file is uploaded correctly but , I still receive a file update notice.

Johannes

Fast Thumbnails

Would be great if DropBox API had fast thumbnails preview like google drive and one Drive.

These load the thumbnails immediately, while in DropBox we must request the thumbnails, generate the files and then display them in our application. With large files this takes a long time.

Make the API similar to Google Drive

Hi, I am the author of image editor www.Photopea.com .

Some of my users would like my editor to open and save files to their Dropbox accounts. I have already implemented the Google Drive API.

When you design your API, can you just copy some existing API (e.g. the one of Google Drive) instead of inventing your own API? Then, it would be enough just to replace the domain name for all API calls.

Implementing new APIs is a very time-consuming process, the hardest part of which is studying the API. If your API was the same as those of others, more developers would connect their apps with Dropbox.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.