This example in the manual should help you:
http://www.conitec.net/beta/ent_getvertex.htm
- just in case you didn't take a look already.