fix bug in api example

Added the TARGETPATH to the onRequestStart function in the api example.
This was causing an error on CF10.
Merge pull request #204 from bpamiri/master

fix bug in api example