<commit_before># ngDropbox

ngDropbox is a [Dropbox Core API](https://www.dropbox.com/developers/core/docs) Client for AngularJS adapted from [dropbox-js](https://github.com/dropbox/dropbox-js). 


## Status

This module is extracted from an AngularJS application. It mostly satisfies the needs of that project in this incomplete state, but I'm actively working (as of 8/1/2013) to implement the rest of the API. Peer review and bug fixes are much appreciated, please communicate via issues. Thanks in advance!


## Install

    bower install <EMAIL>:christiansmith/ngDropbox.git --save


## Authorization

After you create an app in the [Dropbox App Console](https://www.dropbox.com/developers/apps), add an OAuth Redirect URI pointing to `https://<HOST>/components/ngDropbox/callback.html`. Then inform your Angular app of the App key and Redirect URI:

    angular.module('myApp')
      .value('DropboxClientId', <APP_KEY>)
      .value('DropboxRedirectUri', <REDIRECT_URI>)

## Usage

Inject the service into your controllers and call any methods. All server methods return promises.

    angular.module('myApp')
      .controller('DropboxCtrl', function ($scope, Dropbox) {
        $scope.accountInfo = Dropbox.accountInfo();
      });

### API

* [<code>**Dropbox.accountInfo()**</code>](https://www.dropbox.com/developers/core/docs#account-info)
* [Dropbox.userInfo()](https://www.dropbox.com/developers/core/docs#account-info) (alias Dropbox.accountInfo())
* [Dropbox.readFile(path, params)](https://www.dropbox.com/developers/core/docs#files-GET)
* writeFile
* [Dropbox.stat(path, params)](https://www.dropbox.com/developers/core/docs#metadata)
* [Dropbox.metadata(path, params)](https://www.dropbox.com/developers/core/docs#metadata) (alias Dropbox.stat(path, params))
* [Dropbox.readdir(path, params)](https://www.dropbox.com/developers/core/docs#metadata)
* makeUrl 
* [Dropbox.history(path, params)](https://www.dropbox.com/developers/core/docs#revisions)<commit_msg>api doc formatting<commit_after># ngDropbox

ngDropbox is a [Dropbox Core API](https://www.dropbox.com/developers/core/docs) Client for AngularJS adapted from [dropbox-js](https://github.com/dropbox/dropbox-js). 


## Status

This module is extracted from an AngularJS application. It mostly satisfies the needs of that project in this incomplete state, but I'm actively working (as of 8/1/2013) to implement the rest of the API. Peer review and bug fixes are much appreciated, please communicate via issues. Thanks in advance!


## Install

    bower install <EMAIL>:christiansmith/ngDropbox.git --save


## Authorization

After you create an app in the [Dropbox App Console](https://www.dropbox.com/developers/apps), add an OAuth Redirect URI pointing to `https://<HOST>/components/ngDropbox/callback.html`. Then inform your Angular app of the App key and Redirect URI:

    angular.module('myApp')
      .value('DropboxClientId', <APP_KEY>)
      .value('DropboxRedirectUri', <REDIRECT_URI>)

## Usage

Inject the service into your controllers and call any methods. All server methods return promises.

    angular.module('myApp')
      .controller('DropboxCtrl', function ($scope, Dropbox) {
        $scope.accountInfo = Dropbox.accountInfo();
      });

### API

* [**Dropbox.accountInfo()**](https://www.dropbox.com/developers/core/docs#account-info)
* [Dropbox.userInfo()](https://www.dropbox.com/developers/core/docs#account-info) (alias Dropbox.accountInfo())
* [Dropbox.readFile(path, params)](https://www.dropbox.com/developers/core/docs#files-GET)
* writeFile
* [Dropbox.stat(path, params)](https://www.dropbox.com/developers/core/docs#metadata)
* [Dropbox.metadata(path, params)](https://www.dropbox.com/developers/core/docs#metadata) (alias Dropbox.stat(path, params))
* [Dropbox.readdir(path, params)](https://www.dropbox.com/developers/core/docs#metadata)
* makeUrl 
* [Dropbox.history(path, params)](https://www.dropbox.com/developers/core/docs#revisions)
{'fraction_non_alphanumeric': 0.1404352226720648, 'fraction_numerical': 0.003036437246963563, 'mean_word_length': 4.9, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 22, 'lorem ipsum': 0, 'www.': 18, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6996533', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1187, 'n_words': 297}