Skip to content

Commit 6800da6

Browse files
author
Jenkins User
committed
Merge commit 'ce5a5197778142bcf5a9a70a5e74ad13b7b913c7'
2 parents e01aa55 + ce5a519 commit 6800da6

File tree

4 files changed

+0
-60
lines changed

4 files changed

+0
-60
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ pipedrive.Deals.getAll({}, function(err, deals) {
6464
* Users
6565
* Webhooks
6666

67-
# Authorization against email and password
68-
69-
### Pipedrive.authenticate({ email: 'john@doe.com', password: 'example' }, [fn callback]);
70-
Fetches the possible API tokens for the given user against email and password, passing ```error, data, additionalData``` to the callback function. You can use the API tokens returned by this method to instantiate the API client by issuing ```var pipedrive = new Pipedrive.Client('API_TOKEN_HERE', { strictMode: true })```.
71-
7267
# Supported operations for object collections
7368

7469
### pipedrive.{Object}.add (data, [fn callback])

examples/login.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

lib/Pipedrive.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919
CollectionItem = require(__dirname + '/CollectionItem'),
2020
wrapCollectionItems = require(__dirname + '/wrapCollectionItems');
2121

22-
exports.authenticate = function (auth, callback) {
23-
var client = new exports.Client('unauthorized-client-nodejs'),
24-
restHandlers = new RestHandlers();
25-
26-
return restHandlers.listItems('authorizations', auth, function (error, data, additionalData) {
27-
var collectionItems = wrapCollectionItems(data, 'authorizations', {});
28-
callback(error, collectionItems, additionalData);
29-
}, false);
30-
};
31-
3222
exports.Client = Client;
3323

3424
function Client(apiToken, options) {

test/unit/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ describe('main module', function() {
1010
var Pipedrive = require('./../..');
1111

1212
assert.isFunction(Pipedrive.Client);
13-
assert.isFunction(Pipedrive.authenticate);
1413
});
1514

1615
});

0 commit comments

Comments
 (0)