Skip to content

Commit 965e746

Browse files
author
Kristina Nassonenko
committed
GRAL-412 remove /authorizations endpoint
1 parent 09d1a23 commit 965e746

File tree

3 files changed

+0
-59
lines changed

3 files changed

+0
-59
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) {

0 commit comments

Comments
 (0)