Giter Site home page Giter Site logo

dropbox-protos's Introduction

Dropbox Protos

Contains protocol buffer definitions of the Dropbox Apis.

This is simply a translation of their excellent documentation and any errors belong to @hassox.

The dropbox protos have been marked up to work with Fender.

Dependencies

Usage

You can include this repository as a submodule or simply add it to your protos.json if you're using protob.

An example protos.json file:

[
  { "git": "http://github.com/hassox/google-protos.git" },
  { "git": "http://github.com/hassox/fender.git" },
  { "git": "http://github.com/hassox/public-protos.git" },
  { "git": "http://github.com/hassox/dropbox-protos.git" }
]

Then pilgrimize

npm install -g pilgrimize

pilgrimize

Open up pilgrim

Caveats

Beware any endpoints that deal with raw files like GET /files or POST|PUT /files_put. Protocol buffers are a message format (like JSON) and is suited to short sharp messages. Whilst it's possible to use protos to send files as bytes, there is no streaming. You'll need to load the entire file into memory completely in order to work with the proto message.

Because of this reason, the endpoints for GET /files and POST|PUT /files_put are not implemented in protos.

The following endpoints are not implemented:

Core API

File endpoints

  • GET /files
  • POST|PUT /files_put

These endpoints aren't implemented because the return type is a list with differently shaped entries. i.e. [, FileMetadata], these cannot be described with protocol buffers.

  • GET /delta
  • POST /delta/latest_cursor
  • GET /longpoll_delta

dropbox-protos's People

Stargazers

 avatar

Watchers

 avatar

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.