Curl error: <url> malformed

Fatal error: Uncaught exception 'Gpf_Exception' with message 'Curl error: <url> malformed'

This error is caused by not using full path in API. You should change your links in API from relative path to full. This should resolve the problem.