-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.js
More file actions
32 lines (28 loc) · 737 Bytes
/
demo.js
File metadata and controls
32 lines (28 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const Service = require('./index');
// Take this credentials from https://location-service.cagatay.me
let service = new Service({name:'marvelous-hitman', token: '3dd0ac06-6dda-4d31-a56c-785c5ef80831'});
// service.addLocation({
// key: `ownId`, // That param is for end developer uniq identifier.
// lat: 37.75153915304526,
// lon: 29.101365375671318
// }, msg => {
// console.log(msg);
// })
// service.nearby({
// lat: 37.75153915304526,
// lon: 29.101365375671318,
// depth: 1, // Default 1
// limit: 20 // Default 20
// }, msg => {
// console.log(msg);
// })
//
// service.deleteLocation({
// key: 'ownId',
// }, msg => {
// console.log(msg);
// })
//
service.deleteUser({}, msg => {
console.log(msg);
})