Generic PHP script to use the Vend API