We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I try to write template but i have error. please help me
$options = [ 'ip' => '192.168.200.4', 'com_key' => xxxxx, 'soap_port' => 80, 'udp_port' => 4370, 'encoding' => 'utf-8' ];
$tad_factory = new TADFactory($options); $tad = $tad_factory->get_instance();
$user_info = [ 'pin' => 2, 'name' => 'Mustapha Ramadhan', 'password' => 8888, 'privilege' => 0, ]; $r = $tad->set_user_info($user_info);
$template1_vx9 = "ocosgoulTUEdNKVRwRQ0I27BDTEkdMEONK9KQQunMVSBK6VPLEENk9MwgQ+DP3PBC1FTXEEG4ihpQQQ3vFQBO4K+WwERYilHAQ8ztktBEBbKQ0ELDtJrwQ7dqCiBCz+/IgEGKrBjQQhEO0zBFQNDQYEKFbhrQQdLF1wBDxclfUELMNFXwQRvvmHBCslKUAEZfU1OQRzmIU5BXRW0eoEKPMltgQnQGUyBJQSfRIEUSzIdAQ45l3gBByHUTMEJ5yVhQQmi0UZBFHvYPUEGeKxTAQ6rFGNBCIYURoEOZS9VwR+1M4RoE5m0DRUTF8DHd6HdqxHAxWmj393M28DDX2FkanKi/t7LGsDCWqGarmt1BaL/25nAwVaiipu/cgcQGKG6mcDBU6KYmr5wChQcobmJIsDBUKKJmZ1uExyi+ZaYwMFMgU2CQCSinYdnJsDBR4Ghl3Q4owa3dnfAwUamdlZlR5p2Zi7AwUSndERlfOpWZlfAwUOiQzVkLDhDopRUVTLAwT2iQ0ZjIzVMolNFRcDBN6I0ZlQebVaiEjRVwMEyolVVUxVxXKEBRUTAwS+iZVYyD3JhoQJFTMDBLKJlVUIKcWShBVVTwMIkoWVkFQhyaaEVZ1rAwh6hVlUPAW+iNGd3wMIToWdlBnWiRWZ3aMDDCqRmZjRpZmrAxASjd2Vnh2/gAA=="; $template1_data = [ 'pin' => $user_info['pin'], 'finger_id' => 0, 'size' => 514, 'valid' => 1, 'template' => $template1_vx9 ]; $response = $tad->set_user_template( $template1_data );
echo $response->to_json();
---------RESULT-------------------- {"Row":{"Result":"0","Information":"Write the template fail!"}}
The text was updated successfully, but these errors were encountered:
How do you get the template?
Sorry, something went wrong.
If it is recorded you can get VIA get_response_body function
No branches or pull requests
I try to write template
but i have error.
please help me
$options = [
'ip' => '192.168.200.4',
'com_key' => xxxxx,
'soap_port' => 80,
'udp_port' => 4370,
'encoding' => 'utf-8'
];
$tad_factory = new TADFactory($options);
$tad = $tad_factory->get_instance();
$user_info = [
'pin' => 2,
'name' => 'Mustapha Ramadhan',
'password' => 8888,
'privilege' => 0,
];
$r = $tad->set_user_info($user_info);
$template1_vx9 = "ocosgoulTUEdNKVRwRQ0I27BDTEkdMEONK9KQQunMVSBK6VPLEENk9MwgQ+DP3PBC1FTXEEG4ihpQQQ3vFQBO4K+WwERYilHAQ8ztktBEBbKQ0ELDtJrwQ7dqCiBCz+/IgEGKrBjQQhEO0zBFQNDQYEKFbhrQQdLF1wBDxclfUELMNFXwQRvvmHBCslKUAEZfU1OQRzmIU5BXRW0eoEKPMltgQnQGUyBJQSfRIEUSzIdAQ45l3gBByHUTMEJ5yVhQQmi0UZBFHvYPUEGeKxTAQ6rFGNBCIYURoEOZS9VwR+1M4RoE5m0DRUTF8DHd6HdqxHAxWmj393M28DDX2FkanKi/t7LGsDCWqGarmt1BaL/25nAwVaiipu/cgcQGKG6mcDBU6KYmr5wChQcobmJIsDBUKKJmZ1uExyi+ZaYwMFMgU2CQCSinYdnJsDBR4Ghl3Q4owa3dnfAwUamdlZlR5p2Zi7AwUSndERlfOpWZlfAwUOiQzVkLDhDopRUVTLAwT2iQ0ZjIzVMolNFRcDBN6I0ZlQebVaiEjRVwMEyolVVUxVxXKEBRUTAwS+iZVYyD3JhoQJFTMDBLKJlVUIKcWShBVVTwMIkoWVkFQhyaaEVZ1rAwh6hVlUPAW+iNGd3wMIToWdlBnWiRWZ3aMDDCqRmZjRpZmrAxASjd2Vnh2/gAA==";
$template1_data = [
'pin' => $user_info['pin'],
'finger_id' => 0,
'size' => 514,
'valid' => 1,
'template' => $template1_vx9
];
$response = $tad->set_user_template( $template1_data );
echo $response->to_json();
---------RESULT--------------------
{"Row":{"Result":"0","Information":"Write the template fail!"}}
The text was updated successfully, but these errors were encountered: