Refactor cURL calls to single method sendRequest
Need to make the cURL code DRY. The same request code is repeated 3 times, soon to be 4 or 5. Refactoring to single sendRequest method will make code more maintainable and readable.
Need to make the cURL code DRY. The same request code is repeated 3 times, soon to be 4 or 5. Refactoring to single sendRequest method will make code more maintainable and readable.