Skip to content

Commit

Permalink
added files/delete_batch
Browse files Browse the repository at this point in the history
  • Loading branch information
Astrovic authored and Astrovic committed Oct 18, 2016
1 parent d5d883f commit bad07cd
Show file tree
Hide file tree
Showing 15 changed files with 109 additions and 4,380 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ Vittorio Sorbera, astrovicApps

www.facebook.com/astrovicApps

## Table of contents

- [Get started](#get-started)
- [Example of use](#example-of-use)
- [Screenshots](#screenshots)
- [Todos](#todos)
- [Guidelines for pull requests](#guidelines-for-pull-requests)
- [License](#license)

---

# Get started
### Initialize module
You need a [Dropbox App key], and a `redirect_uri` which must be configured on **Redirect URIs** field of your Dropbox App Settings, on *OAuth 2* section.
Expand Down Expand Up @@ -245,6 +256,23 @@ function onErrorCallback(e) {

- OAauth 2 code flow

# Guidelines for pull requests

Every contribution and pull requests are welcome! This repository is a **module/document**. So you can contribute both to the documentation, that to new versions of the module.

##### Pull requests for new module version
If you want to create a new module version, to edit or add new methods, **do not edit the [`modules/`](https://github.com/Astrovic/TiDropboxAPIv2/tree/master/modules) folder directly! But you have to delete [`modules/commonjs`](https://github.com/Astrovic/TiDropboxAPIv2/tree/master/modules/commonjs) folder.** You should edit the
source files in [/lib](https://github.com/Astrovic/TiDropboxAPIv2/tree/master/app/lib) folder instead.

After making your changes, to create a new version of the module you have to follow the following steps:

- Increase the version number in [package.json](https://github.com/Astrovic/TiDropboxAPIv2/tree/master/package.json) file, in the root folder.
- Uses [Titaniumifier](https://github.com/smclab/titaniumifier) to generate the zip module, with the command:

`$ titaniumifier --in . --out ./dist`
- Import your new **ti.dropbox-commonjs-x.x.x.zip** module in the project. This will create the [`modules/commonjs`](https://github.com/Astrovic/TiDropboxAPIv2/tree/master/modules/commonjs) folder you had removed earlier, with the new version of the module.

All done :) Now you can send your pull request.

License
----
Expand Down
28 changes: 28 additions & 0 deletions app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ Vittorio Sorbera, astrovicApps

www.facebook.com/astrovicApps

## Table of contents

- [Get started](#get-started)
- [Example of use](#example-of-use)
- [Screenshots](#screenshots)
- [Todos](#todos)
- [Guidelines for pull requests](#guidelines-for-pull-requests)
- [License](#license)

---

# Get started
### Initialize module
You need a [Dropbox App key], and a `redirect_uri` which must be configured on **Redirect URIs** field of your Dropbox App Settings, on *OAuth 2* section.
Expand Down Expand Up @@ -245,6 +256,23 @@ function onErrorCallback(e) {

- OAauth 2 code flow

# Guidelines for pull requests

Every contribution and pull requests are welcome! This repository is a **module/document**. So you can contribute both to the documentation, that to new versions of the module.

##### Pull requests for new module version
If you want to create a new module version, to edit or add new methods, **do not edit the [`modules/`](https://github.com/Astrovic/TiDropboxAPIv2/tree/master/modules) folder directly! But you have to delete [`modules/commonjs`](https://github.com/Astrovic/TiDropboxAPIv2/tree/master/modules/commonjs) folder.** You should edit the
source files in [/lib](https://github.com/Astrovic/TiDropboxAPIv2/tree/master/app/lib) folder instead.

After making your changes, to create a new version of the module you have to follow the following steps:

- Increase the version number in [package.json](https://github.com/Astrovic/TiDropboxAPIv2/tree/master/package.json) file, in the root folder.
- Uses [Titaniumifier](https://github.com/smclab/titaniumifier) to generate the zip module, with the command:

`$ titaniumifier --in . --out ./dist`
- Import your new **ti.dropbox-commonjs-x.x.x.zip** module in the project. This will create the [`modules/commonjs`](https://github.com/Astrovic/TiDropboxAPIv2/tree/master/modules/commonjs) folder you had removed earlier, with the new version of the module.

All done :) Now you can send your pull request.

License
----
Expand Down
24 changes: 24 additions & 0 deletions app/lib/dropboxAPIv2.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,30 @@ exports.dropboxAPIv2 = {
}],
"returnParameters": []
},
"files/delete_batch": {
"uri": "https://api.dropboxapi.com/2/files/delete_batch",
"requiresAuthHeader": true,
"requiresReadableStream": false,
"endpointType": "RPC",
"testParams": {
"entries": [
{
"path": "/Homework/math/Prime_Numbers.txt"
}
]
},
"parameters": [{
"name": "entries",
"type": "List of DeleteArg",
"desc": "",
"parameters": [{
"name": "path",
"type": "String(pattern=\"(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)\")",
"desc": "Path in the user's Dropbox to delete."
}],
}],
"returnParameters": []
},
"files/download": {
"uri": "https://content.dropboxapi.com/2/files/download",
"requiresAuthHeader": true,
Expand Down
Binary file added dist/ti.dropbox-commonjs-1.1.1.zip
Binary file not shown.
Loading

0 comments on commit bad07cd

Please sign in to comment.