I'm not going to read through an entire API.
What is complaining? The internal functions or the results of the server? If its the results of the server, then it sounds like there is no issue with whatever code you are using (not this code since its syntactically incorrect so will never run without throwing an error). That will require you to consult with the remote website and their documentation to determine what you need to do in order to communicate properly between the server and client.
If its an internal configuration error then we can help with that. But you need to specify what it is.