This is a port of Polo' PHP API Wrapper.