The problem here is that you are using file_get_contents and file_get_contents doesn’t work on most hosts for security reasons.
Code needs to be updated/revised to use cURL instead of file_get_contents
But you’d have to describe the actual error you are getting.