Replaced file_get_contents by Guzzle for API calls