Skip to content

Commit eaba09c

Browse files
committed
api.token added
1 parent b94a751 commit eaba09c

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

build/deps.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ var deps = {
88
'base/Session.js',
99
'base/Session.Gis.js',
1010
'base/Session.Locale.js',
11-
'api/core.js'
11+
'api/core.js',
12+
'api/token.js'
1213
],
1314
desc: 'The core of the library, including OOP, events, basic units.'
1415
}

dist/wialon-src.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ W.Session.include({
12241224
return this._url;
12251225
},
12261226

1227-
/** Detect location for text for coordinates
1227+
/** Detect location for coordinates
12281228
*/
12291229
getLocations: function(params, force, callback) {
12301230
// Get correct path
@@ -1563,4 +1563,17 @@ W.Session.prototype.api.core = {
15631563
}
15641564
};
15651565

1566+
/** Remote Api 'token' service methods
1567+
*/
1568+
1569+
W.Session.prototype.api.token = {
1570+
login: function(params, callback) {
1571+
// Call request
1572+
this._request.api('token/login',
1573+
{params: params},
1574+
this._loginCallback.bind(this, callback)
1575+
);
1576+
}
1577+
};
1578+
15661579
}(window));

0 commit comments

Comments
 (0)