cobisja / tad-php

PHP Library for ZK Time & Attendance Devices
MIT License
213 stars 159 forks source link

How can I get the fingerprint of each user? #40

Open MorganHuascar opened 6 years ago

MorganHuascar commented 6 years ago

How can I get the fingerprint of each user with the code ??? so far I could not do it, the function getUserTemplarte () only shows me numbers and I want something like this for each user:

ocosgoulTUEdNKVRwRQ0I27BDTEkdMEONK9KQQunMVSBK6VPLEENk9MwgQ + DP3PBC1FTXEEG4ihpQQQ3vFQBO4K + WwERYilHAQ8ztktBEBbKQ0ELDtJrwQ7dqCiBCz + / + IgEGKrBjQQhEO0zBFQNDQYEKFbhrQQdLF1wBDxclfUELMNFXwQRvvmHBCslKUAEZfU1OQRzmIU5BXRW0eoEKPMltgQnQGUyBJQSfRIEUSzIdAQ45l3gBByHUTMEJ5yVhQQmi0UZBFHvYPUEGeKxTAQ6rFGNBCIYURoEOZS9VwR 1M4RoE5m0DRUTF8DHd6HdqxHAxWmj393M28DDX2FkanKi / t7LGsDCWqGarmt1BaL / 25nAwVaiipu / cgcQGKG6mcDBU6KYmr5wChQcobmJIsDBUKKJmZ1uExyi iZVYyD3JhoQJFTMDBLKJlVUIKcWShBVVTwMIkoWVkFQhyaaEVZ1rAwh6hVlUPAW + + + ZaYwMFMgU2CQCSinYdnJsDBR4Ghl3Q4owa3dnfAwUamdlZlR5p2Zi7AwUSndERlfOpWZlfAwUOiQzVkLDhDopRUVTLAwT2iQ0ZjIzVMolNFRcDBN6I0ZlQebVaiEjRVwMEyolVVUxVxXKEBRUTAwS iNGd3wMIToWdlBnWiRWZ3aMDDCqRmZjRpZmrAxASjd2Vnh2 / GAA ==

please help.

cobisja commented 6 years ago

According the very poor documentation I found, the SOAP call getUserTemplate() returns the user's fingerprint as a string which is the format as the device stores it. So, if you are not getting as a response, an string like you already showed, maybe it could be your device stores the fingerprint in a different way.

Remember, TAD-PHP, as the README.md says, was tested on devices with ZEM-800, ZEM-600 and ZEM-580 firmwares (i-clock580 and Q2i devices) getting all results showed. If your devices uses a different firmware, maybe you can not getting the results you expected.

Best regards,

2018-01-10 10:45 GMT-04:00 MorganHuascar notifications@github.com:

How can I get the fingerprint of each user with the code ??? so far I could not do it, the function getUserTemplarte () only shows me numbers and I want something like this for each user:

ocosgoulTUEdNKVRwRQ0I27BDTEkdMEONK9KQQunMVSBK6VPLEENk9MwgQ + DP3PBC1FTXEEG4ihpQQQ3vFQBO4K + WwERYilHAQ8ztktBEBbKQ0ELDtJrwQ7dqCiBCz + /

  • IgEGKrBjQQhEO0zBFQNDQYEKFbhrQQdLF1wBDxclfUELMNFXwQRvvmHBCslK UAEZfU1OQRzmIU5BXRW0eoEKPMltgQnQGUyBJQSfRIEUSzIdAQ45l3gBByHU TMEJ5yVhQQmi0UZBFHvYPUEGeKxTAQ6rFGNBCIYURoEOZS9VwR 1M4RoE5m0DRUTF8DHd6HdqxHAxWmj393M28DDX2FkanKi / t7LGsDCWqGarmt1BaL / 25nAwVaiipu / cgcQGKG6mcDBU6KYmr5wChQcobmJIsDBUKKJmZ1uExyi iZVYyD3JhoQJFTMDBLKJlVUIKcWShBVVTwMIkoWVkFQhyaaEVZ1rAwh6hVlUPAW + + + ZaYwMFMgU2CQCSinYdnJsDBR4Ghl3Q4owa3dnfAwUamdlZlR5p2Zi7AwUSnd ERlfOpWZlfAwUOiQzVkLDhDopRUVTLAwT2iQ0ZjIzVMolNFRcDBN6I0ZlQebVaiEjRVwMEyolVVUxVxXKEBRUTAwS iNGd3wMIToWdlBnWiRWZ3aMDDCqRmZjRpZmrAxASjd2Vnh2 / GAA ==

please help.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cobisja/tad-php/issues/40, or mute the thread https://github.com/notifications/unsubscribe-auth/AJzLMrz9xGykaF8XRBT61FrCMtMjXRj1ks5tJMzugaJpZM4RZbRi .

MorganHuascar commented 6 years ago

all other functions work perfectly with my device ZKTECO F19, the only problem is that I can not show that trace or maybe I'm putting bad parameters. I show you part of my code to see if something is wrong:

<? php // require 'vendor / autoload.php'; require 'lib / TADFactory.php'; require 'lib / TAD.php'; require 'lib / TADResponse.php'; require 'lib / Providers / TADSoap.php'; require 'lib / Providers / TADZKLib.php'; require 'lib / Exceptions / ConnectionError.php'; require 'lib / Exceptions / FilterArgumentError.php'; require 'lib / Exceptions / UnrecognizedArgument.php'; require 'lib / Exceptions / UnrecognizedCommand.php';

$ tad_factory = new TADPHP \ TADFactory ();

use TADPHP \ TADFactory; use TADPHP \ TAD;

$ b1 = (new TADFactory (['ip' => '192.168.6.30', 'com_key' => 0])) -> get_instance ();

$ logs = $ b1-> get_user_template (['pin' => '123']); echo $ logs; exit; ..............

Thank you

MorganHuascar commented 6 years ago

all other functions work perfectly with my device ZKTECO F19, the only problem is that I can not show that trace or maybe I'm putting bad parameters. I show you part of my code to see if something is wrong: <? php // require 'vendor / autoload.php'; require 'lib / TADFactory.php'; require 'lib / TAD.php'; require 'lib / TADResponse.php'; require 'lib / Providers / TADSoap.php'; require 'lib / Providers / TADZKLib.php'; require 'lib / Exceptions / ConnectionError.php'; require 'lib / Exceptions / FilterArgumentError.php'; require 'lib / Exceptions / UnrecognizedArgument.php'; require 'lib / Exceptions / UnrecognizedCommand.php';

$ tad_factory = new TADPHP \ TADFactory ();

use TADPHP \ TADFactory; use TADPHP \ TAD;

$ b1 = (new TADFactory (['ip' => '192.168.6.30', 'com_key' => 0])) -> get_instance ();

$ logs = $ b1-> get_user_template (['pin' => '123']); echo $ logs; exit; ..............

Thank you

MorganHuascar commented 6 years ago

THE FIRMWARE THAT I USE IS: ZEM760_TFT

cobisja commented 6 years ago

As I already told you, I only had the oportunity for testing the library only on devices running ZEM-800, ZEM-600 and ZEM-580 firmware, so I cannot guarantee TAD-PHP runs as expected on your device using the firmware ZEM760_TFT.

I would like to make some improvements on the library but I cannot get devices for testing because they are so expensive and I cannot afford for them.

I'd like to help you, but it is not possible, at least right now, so I'm sorry my friend

Best regards,

2018-01-10 15:13 GMT-04:00 MorganHuascar notifications@github.com:

THE FIRMWARE THAT I USE IS: ZEM760_TFT

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cobisja/tad-php/issues/40#issuecomment-356706027, or mute the thread https://github.com/notifications/unsubscribe-auth/AJzLMj2r9oJYLAF2X5ZXLR5Omwz4rOfoks5tJQvjgaJpZM4RZbRi .