Hi there , i am new to erpnext . i’m trying to push biometric erpnext for ( poll for Bio-metric Attendance and push to ERPNext via API) . follow this tutorial
i have already successfully done 4 steps but in step 5 , i need erpnext api key & api secrets .
but i am unable to findout these keys. plz help me to finding out these keys. !
For every user you can generate an api-key and api-secret which together form a token.
api-key: identifies the user.
api-secret: validates the request.
Api-key and api-secret can be generated from the web interface, from the command line or by remote procedure call (RPC):
RPC: /api/method/frappe.core.doctype.user.user.generate_keys?user=“user_name”
Command: bench execute frappe.core.doctype.user.user.generate_keys --args [‘user_name’]
Web: User → Api Access → Generate Keys
Note:
You need to create a User account on ERPNext (or an existing user with appropriate permissions) for this purpose
Just scroll towards the bottom of the User form and you’ll find the section called ‘API Access’
Api key cannot be re-generated
Only users with system manager role can generate keys
Thanks for the steps. Can you let me know what is the brand and model of the biometric device you are using. Would like to test on ZK Teco machine as this is the easiest available brand in our area.
If i may ask, where do you run steps 5 and 6? is it in your ERPNext instance? Next question tied to this is how do you configure a local device to a cloud-based instance? As is shown the screenshot above, the device IP is local and the instance is in the cloud, how do you then redirect the local traffic from the device to the cloud-based instance?
@wale hope you don’t mind me tagging you. Any way you could point me to how to generate API key? I generated API secret successfully from the created user but when i try yo generate API key from terminal i get the API secret but no key.
UPDATE: API Key is only visible for logged-in user. Found it.
My process was interrupted and now the attendance won’t come. New records will be synced but the records that didn’t sync from the last run won’t get into erpnext now. Is there a configuration I can change and maybe delete and re-sync all?