API:How to make a PHP request