js_zklib icon indicating copy to clipboard operation
js_zklib copied to clipboard

how to get attendance data?

Open andrekurniawan123 opened this issue 7 years ago • 7 comments

hello, i'm newbie here.. i want to ask how to get attendance data using getAttendance()? i already tried but getting error

ZK.getAttendance(function(err, t) { ZK.disconnect(); if (err) throw err; console.log(t.toString()); });

thanks before :)

andrekurniawan123 avatar May 15 '18 05:05 andrekurniawan123

Remember that you have to connect before trying any function

something like this:

ZK.connect(function() {
  ZK.getAttendance(function(err, data) {
    ZK.disconnect();

    if (err) throw err; 

    console.log(data.toString());
  });
});

mribichich avatar May 29 '18 18:05 mribichich

@andrekurniawan123 Were you able to test this?

mribichich avatar Jun 06 '18 22:06 mribichich

@andrekurniawan123 Did you have a chance to check it out?

mribichich avatar Aug 16 '18 21:08 mribichich

It is working on my side, but funny thing the id is only 4 digits?

beeing avatar Sep 21 '18 06:09 beeing

Great to hear that. Yeah in our products it is

On Fri, Sep 21, 2018, 02:40 Bee Ing [email protected] wrote:

It is working on my side, but funny thing the id is only 4 digits?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/bulentv/js_zklib/issues/28#issuecomment-423430178, or mute the thread https://github.com/notifications/unsubscribe-auth/AFe3SmO_zPwH_UJJ9ye9-ahIVZ2fJdCJks5udInugaJpZM4T-5p- .

mribichich avatar Sep 22 '18 22:09 mribichich

how limit the data fetch ? every get data need long time so i need limit it

ibrahimMH13 avatar Jan 21 '19 15:01 ibrahimMH13

THere is no way to limit data !!

Check my repo , I've already fixed many bugs : https://github.com/caobo171/node-zklib

caobo171 avatar Nov 08 '19 07:11 caobo171