Commit 8e2faeee by Arnout Kazemier Committed by GitHub

Merge pull request #22 from observing/update-deps

Update deps
parents 7a15c707 62eac15e
...@@ -79,7 +79,7 @@ headers. ...@@ -79,7 +79,7 @@ headers.
## Error responses ## Error responses
This API implemention will return an Error object when the FullContact response This API implementation will return an Error object when the FullContact response
is returned without a `status: 200` or `status: 202` so it could be that your operation is queued for processing. That's why all returned error's have a `status` property which is returned without a `status: 200` or `status: 202` so it could be that your operation is queued for processing. That's why all returned error's have a `status` property which
the returned status code (unless it's a parse error or a generic error). So just the returned status code (unless it's a parse error or a generic error). So just
because you got an error, it doesn't mean that your request has failed. because you got an error, it doesn't mean that your request has failed.
...@@ -201,13 +201,13 @@ fullcontact.person.phone('+13037170414', function (err, data) { ...@@ -201,13 +201,13 @@ fullcontact.person.phone('+13037170414', function (err, data) {
### Email ### Email
Reduce the number of anonymous subscribers by detecing of the user is Reduce the number of anonymous subscribers by detecting if the user is
subscribing with a real e-mail address or just a one time address The `Email` subscribing with a real e-mail address or just a one time address The `Email`
endpoint is namespaced under the `.email` property. endpoint is namespaced under the `.email` property.
#### email.disposable(email, fn); #### email.disposable(email, fn);
Checks if the given e-mail address was disposible. Checks if the given e-mail address was disposable.
```js ```js
fullcontact.email.disposable('foo@bar.bar', function (err, data) { fullcontact.email.disposable('foo@bar.bar', function (err, data) {
...@@ -244,7 +244,7 @@ fullcontact.name.normalize('John Smith', 'uppercase', function (err, data) { ...@@ -244,7 +244,7 @@ fullcontact.name.normalize('John Smith', 'uppercase', function (err, data) {
#### fullcontact.name.deducer({ email: 'opensource@observe.it' }, [casing], fn); #### fullcontact.name.deducer({ email: 'opensource@observe.it' }, [casing], fn);
Name deducing. Unlike other API's this API should receive an object with either Name deducing. Unlike other API's this API should receive an object with either
an `email` or `username` property which you want to use to substract the an `email` or `username` property which you want to use to subtract the
information. information.
```js ```js
...@@ -259,7 +259,7 @@ fullcontact.name.deducer({ username: '3rdeden' }, 'lowercase', function (err, da ...@@ -259,7 +259,7 @@ fullcontact.name.deducer({ username: '3rdeden' }, 'lowercase', function (err, da
#### fullcontact.name.similarity('john', 'johnny', [casing], fn); #### fullcontact.name.similarity('john', 'johnny', [casing], fn);
Check the similairity of between two names. Check the similarity of between two names.
```js ```js
fullcontact.name.similarity('john', 'johnny', function (err, data) { fullcontact.name.similarity('john', 'johnny', function (err, data) {
...@@ -287,7 +287,7 @@ fullcontact.name.stats({ name: 'john' }, function (err, data) { ...@@ -287,7 +287,7 @@ fullcontact.name.stats({ name: 'john' }, function (err, data) {
#### fullcontact.name.parser('john smith', [casing], fn); #### fullcontact.name.parser('john smith', [casing], fn);
Parses the name to determin the likelyhoot that this is really a name. Parses the name to determine the likelihood that this is really a name.
```js ```js
fullcontact.name.parser('john smith', function (err, data) { fullcontact.name.parser('john smith', function (err, data) {
...@@ -346,7 +346,7 @@ multi.exec(function (err) { ...@@ -346,7 +346,7 @@ multi.exec(function (err) {
## Testing ## Testing
The CI testing happens with a free api key that has limits to the calls it can do to FullContact. If you see the tests fail make sure it is because of failing tests not exeeding rate limit. The CI testing happens with a free api key that has limits to the calls it can do to FullContact. If you see the tests fail make sure it is because of failing tests not exceeding rate limit.
The tests are written against the live FullContact API. They can be ran using: The tests are written against the live FullContact API. They can be ran using:
......
'use strict'; 'use strict';
var request = require('request') var request = require('request')
, qs = require('qs'); , qs = require('querystring');
var slice = Array.prototype.slice; var slice = Array.prototype.slice;
......
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
"version": "1.0.0", "version": "1.0.0",
"description": "Fullcontact API bindings", "description": "Fullcontact API bindings",
"main": "index.js", "main": "index.js",
"keywords": ["fullcontact", "api", "full", "contact"], "keywords": [
"fullcontact",
"api",
"full",
"contact"
],
"scripts": { "scripts": {
"test": "NODE_ENV=testing ./node_modules/.bin/mocha $(find test -name '*.test.js')", "test": "NODE_ENV=testing ./node_modules/.bin/mocha $(find test -name '*.test.js')",
"test-travis": "API_KEY=506d9c8a7aafae5a NODE_ENV=testing ./node_modules/.bin/mocha $(find test -name '*.test.js')" "test-travis": "API_KEY=506d9c8a7aafae5a NODE_ENV=testing ./node_modules/.bin/mocha $(find test -name '*.test.js')"
...@@ -15,12 +20,11 @@ ...@@ -15,12 +20,11 @@
"author": "Arnout Kazemier <opensource@observe.it>", "author": "Arnout Kazemier <opensource@observe.it>",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"request": "2.x.x", "request": "2.x.x"
"qs": "2.x.x"
}, },
"devDependencies": { "devDependencies": {
"mocha": "2.x.x", "mocha": "3.x.x",
"chai": "2.x.x", "chai": "3.x.x",
"pre-commit": "1.x.x" "pre-commit": "1.x.x"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment