cURL API call functionality to communicate easily with any web api.