Update version of release notes in 2.5 docs
[working/Evergreen.git] / Open-ILS / examples / req-test.js
1 load_lib('fmall.js');
2 load_lib('fmgen.js');
3 load_lib('jsonopensrfrequest.js');
4
5
6 var bc;
7 environment.result = [];
8
9 var req = new JSONOpenSRFRequest()
10
11 req.connect('open-ils.cstore');
12 req.call('open-ils.cstore.direct.actor.user.search.atomic');
13
14 req.send({ family_name : "arl-dan" },{flesh:1,flesh_fields:{au:['cards']}});
15 user = req.responseJSON[0].cards()[0].barcode();
16 log_debug(user);
17 environment.result.push(req.responseJSON);
18
19 req.send({ family_name : "arl-east" },{flesh:1,flesh_fields:{au:['cards']}});
20 user = req.responseJSON[0].cards()[0].barcode();
21 log_debug(user);
22 environment.result.push(req.responseJSON);
23
24 req.finish();
25