<commit_before># Level3MediaPortalAPI [![Build Status](https://secure.travis-ci.org/dublx/Level3MediaPortalAPI.png?branch=master)](http://travis-ci.org/dublx/Level3MediaPortalAPI)

Level 3 Communication Media Portal API Node.js Module

## Getting Started
Install the module with: `npm install Level3MediaPortalAPI`

```javascript
var api = require('Level3MediaPortalAPI');
var util = require('util');

api.config.key = "YOUR-API-KEY";
api.config.secret = "YOUR-API-SECRET";

api.methods.usage.setParameters({
	ag: YOUR-ACCESS-GROUP,
	scid: "YOUR-SERVICE-IDENTIFIER",
	ni: null,
	serviceType: 'caching || streaming || origin',
	dateFrom: 'yyyyMMddhhmm',
	dateTo: 'yyyyMMddhhmm',
	dateInterval: 'monthly | daily'
});

api.request(api.methods.key, requestCallback);

api.request(api.methods.usage, requestCallback);

function requestCallback(err, response) {
	if (err) throw err;
	console.log(response.body);
};
```

## Documentation
_(Coming soon)_

## Examples
_(Coming soon)_

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History
_(Nothing yet)_

## License
Copyright (c) 2013 <NAME> (Dublx)  <commit_msg>Added Documentation section to README.md<commit_after># Level3MediaPortalAPI [![Build Status](https://secure.travis-ci.org/dublx/Level3MediaPortalAPI.png?branch=master)](http://travis-ci.org/dublx/Level3MediaPortalAPI)

Level 3 Communication Media Portal API Node.js Module

## Getting Started
Install the module with: `npm install Level3MediaPortalAPI`

## Documentation
Supported API methods:
/key
/usage

## Examples
```javascript
var api = require('Level3MediaPortalAPI');
var util = require('util');

api.config.key = "YOUR-API-KEY";
api.config.secret = "YOUR-API-SECRET";

api.methods.usage.setParameters({
	ag: YOUR-ACCESS-GROUP,
	scid: "YOUR-SERVICE-IDENTIFIER",
	ni: null,
	serviceType: 'caching || streaming || origin',
	dateFrom: 'yyyyMMddhhmm',
	dateTo: 'yyyyMMddhhmm',
	dateInterval: 'monthly | daily'
});

api.request(api.methods.key, requestCallback);

api.request(api.methods.usage, requestCallback);

function requestCallback(err, response) {
	if (err) throw err;
	console.log(response.body);
};
```

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History
2013-09-17: Added README.md example usage

## License
Copyright (c) 2013 <NAME> (Dublx)  
{'fraction_non_alphanumeric': 0.13363879343260787, 'fraction_numerical': 0.010691103474608629, 'mean_word_length': 5.517412935323383, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '1230061', 'n_tokens_mistral': 892, 'n_tokens_neox': 863, 'n_words': 226}