Arduino UNO plus GT511C3 fingerprint scanner

I'm doing on a project which is after user enroll their fingerprint, that data/template will be save and send to a database. But i can't seem to figure out the C code for the "Gettemplate" besides using the SDK_demo software. Can anyone give a help pls.