PHP Interface to our API