Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get attendance data? #28

Open
andrekurniawan123 opened this issue May 15, 2018 · 7 comments
Open

how to get attendance data? #28

andrekurniawan123 opened this issue May 15, 2018 · 7 comments

Comments

@andrekurniawan123
Copy link

andrekurniawan123 commented May 15, 2018

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 :)

@mribichich
Copy link
Collaborator

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
Copy link
Collaborator

@andrekurniawan123 Were you able to test this?

@mribichich
Copy link
Collaborator

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

@beeing
Copy link

beeing commented Sep 21, 2018

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

@mribichich
Copy link
Collaborator

mribichich commented Sep 22, 2018 via email

@ibrahimMH13
Copy link

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

@caobo171
Copy link

caobo171 commented Nov 8, 2019

THere is no way to limit data !!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants