cURL API calls with PHP and json data (GET - POST - PUT - DELETE)