Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions endpoints/email.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@
function Email(api) {
this.api = api;

this.endpoint = 'https://api.fullcontact.com/' + api.version + '/email/';
this.endpoint = 'https://api.fullcontact.com/' + api.version + '/verification/';
this.send = api.process.bind(api, this);
}

/**
* Check if we we're given a disposable e-mail address.
* Verifies the existance of an email address.
*
* ```js
* fullcontact.email.disposable('foo@bar.bar', fn);
* fullcontact.email.verify('foo@bar.bar', fn);
* ```
*
* @returns {Email}
* @api public
*/
Email.prototype.disposable = function disposable() {
Email.prototype.verify = function verify() {
var args = this.api.args(arguments);

//
// Add a custom endpoint.
//
args.endpoint = this.endpoint + 'disposable.json';
args.endpoint = this.endpoint + 'email';

this.send({ email: args.value }, args);
return this;
Expand Down