I dug this out of web archive and it fit my needs for API creation.