Added getter and setter for API URL. If cURL returns http_code 0, we try file_get_contents.