api request class + php method json response