dropbox-sdk-js

The Official Dropbox API V2 SDK for Javascript

MIT License

Downloads
214.3K
Stars
926
Committers
49

Bot releases are hidden (Show)

dropbox-sdk-js - Fixes issue where large response never resolves

Published by pran1990 over 6 years ago

dropbox-sdk-js -

Published by pran1990 over 6 years ago

Please ignore, see v4.0.9

dropbox-sdk-js - Updated growl version

Published by pran1990 over 6 years ago

dropbox-sdk-js - Attempted update of growl version

Published by pran1990 over 6 years ago

Ignore release, 4.0.7 updates growl to get around https://nvd.nist.gov/vuln/detail/CVE-2017-16042

dropbox-sdk-js - Grab new specs

Published by pran1990 over 6 years ago

Files Namespace:
- new documentation
- added new too_large error type for uploads

Team namespace:
- add is_directory_restricted attribute to MemberProfile, MemberAddArg
- add new_is_directory_restricted to MemberSetProfileArg

Team_log namespace:
- additional documentation
dropbox-sdk-js -

Published by pran1990 over 6 years ago

Add ts files to distributed package. Thanks @steveklebanoff !

dropbox-sdk-js -

Published by pran1990 over 6 years ago

dropbox-sdk-js -

Published by pran1990 over 6 years ago

Typescript updates for newer javascript functions. Thanks @robertmaloney!

Pulled in new stone specs

- updated comments

files namespace:
- new FileId alias
- new SymlinkInfo struct on FileMetadata
- added select_admin_mode attribute to relevant routes
- added too_many_write_operations error type to WriteError
- New CreateFolderBatch endpoint and related datatypes
- Added parent_rev attribute to DeleteArg
- New Thumbnail sizes
- New ThumbnailMode object
- New SyncSettings objects

seen_state namespace:
-New namespace

sharing namespace:
- added select_admin_mode attribute to relevant routes
- add seen_State.PlatformType to UserFileMembershipInfo
- new set_access_inheritance for FolderAction
- Updated docs
- additional user info added to UserInfo struct
- new AccessInheritance union
- new set_access_inheritance route

team namespace:
- updated docstrings
- new HasTeamSelectiveSync object
- new selective sync settings included in various return objects and error types
- new update_sync_settings route

team_log namespace:
- updated event types

team_policies namespace:
- new ShowcaseEnabledPolicy object
- new ShowcaseDownloadPolicy object
- new ShowcaseExternalSharingPolicy object

users namespace:
- updated routes with select_admin_mode attribute.```
dropbox-sdk-js - Fixes moment vulnerability

Published by pran1990 over 6 years ago

dropbox-sdk-js - Fixes corrupted downloads for binary files.

Published by pran1990 over 6 years ago

This is a breaking change because string files have to be saved to disk first (or run through a toString() to work with.

dropbox-sdk-js - Remove references to node-fetch

Published by pran1990 over 6 years ago

Doc updates to remove node-fetch; removes confusion due to import being different from isomorphic-fetch.

dropbox-sdk-js - 3.0.4

Published by pran1990 over 6 years ago

Add polyfills for object.assign and array.includes, for IE11.

Modify examples to work in IE11.

dropbox-sdk-js - v3.0.3

Published by pran1990 over 6 years ago

Allows calling getAuthenticationUrl() without a redirect uri in code flow.

dropbox-sdk-js - v3.0.1

Published by pran1990 over 6 years ago

Avoids setting content-type header when there is no request body.

dropbox-sdk-js - v3.0.0

Published by pran1990 over 6 years ago

This release will be a major version bump. Major features in this release are:

  1. Add fetch for requests and remove superagent. Special thanks to James Sidhu!
  2. Change how Dropbox and DropboxTeam are exposed, for consistency.

These are backward incompatible. Going forward, imports change, and developers need to bring their own fetch library.

//Node.js
var Dropbox = require('dropbox').Dropbox;
or 
var DropboxTeam = require('dropbox').DropboxTeam;
require(‘isomorphic-fetch’); // or require(‘node-fetch’) if only running node
const dbx = new Dropbox({ accessToken: 'YOUR_ACCESS_TOKEN_HERE'});

On the web and on most modern browsers, fetch should be available (List of supported browsers). Otherwise, use the polyfill below (for example), or use an npm package such as whatwg-fetch.

<script src="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js"></script>
<script src="https://unpkg.com/dropbox/dist/DropboxTeam-sdk.min.js"></script>
<!-- Optional. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/fetch/2.0.3/fetch.js"></script>
var dbx = new Dropbox.Dropbox({ accessToken: getAccessTokenFromUrl() });

Other new features include:

  1. Add support for select-admin header.
  2. Support app auth method for rpc requests which will enable authTokenFromOauth1
    var Dropbox = require('dropbox').Dropbox;
    var dbx = new Dropbox({ clientId: "...", clientSecret: "..." });
    dbx.authTokenFromOauth1({"oauth1_token": "...", "oauth1_token_secret": "..."}).
        then(function(response) {
            console.log(response.oauth2_token);
        })
        .catch(function(error){
            console.log(error);
        });
  1. Add a getAccessTokenFromCode method. With this, the code authorization flow is now fully supported. There is an example at code_flow_example.js. Thanks to b-dur!
  2. Bug Fixes:
    a. https://github.com/dropbox/dropbox-sdk-js/issues/169
    b. https://github.com/dropbox/dropbox-sdk-js/issues/158
    c. https://github.com/dropbox/dropbox-sdk-js/issues/138
    d. https://github.com/dropbox/dropbox-sdk-js/issues/114
  3. Stone and spec updates
  - team_common namespace:
    - Added new MemberSpaceLimitType union
  - team  namespace:
    - add additional error types to MembersRemoveError union
    - updated docstring
  - users namespace:
    - additional member space limit fields in TeamSpaceAllocation struct
  - team_log namespace:
    - lots of updates to struct names and descriptions (note these routes and structs are still in preview and subject to further changes)
dropbox-sdk-js -

Published by pran1990 almost 7 years ago

Spec changes

  • files
    • Add download_zip endpoint
    • Add properties_error to UploadError
  • team_log
    • Add more event types
dropbox-sdk-js -

Published by pran1990 about 7 years ago

Spec Changes:

Move shared_link to end of parameter list for ListFolderArg.
Add mode to ListRevisionsArg.

dropbox-sdk-js - Generate SDK from Updated Specs

Published by pran1990 about 7 years ago

Namespace common:
- new LanguageCode alias

Namespace file_properties:
- Updated docstrings

Namespace file_requests:
- Updated docstrings

Namespace files:
- New aliases and structs relating to shared links

Namespace sharing:
- New UserFileMembershipInfo struct

Namespace team_folders:
- updated doc strings
- additional async example

namespace team_log:
- new TeamEventList alias
- new autogenerated datatypes

namespace team_policies:
- new TwoStepVerificationPolicy
dropbox-sdk-js - Upgrade mime version

Published by pran1990 about 7 years ago

Following https://nodesecurity.io/advisories/535, require mime 2.0.3 or greater.

dropbox-sdk-js - Generate SDK from Updated Specs

Published by pran1990 about 7 years ago

General:
Updated docstrings in multiple namespaces
Updated general route configuration to support select_admin_mode

file_properties namespace:
New routes and structs for the file properties and templates API functionality

file_requests namespace:
New routes and structs for the file_requests API functionality

files:
deprecate preview routes for files_properties

files_properties:
removed in favor of file_properties

properties:
removed in favor of file_properties

team_property_templates:
removed in favor of file_properties

team:
deprecate beta properites routes

team_members:
Update NamePart? to be OptionalNamePart?

team_policies:
Add new team policies for SSO Paper, RolloutMethod and PasswordStrength