Rest API for smartsupp in PHP