Update API.php

Added 
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

To Avoid cURL's SSL Checking behaviour by default.