     request reqOptions, wrapCallback callback
 
 get = (url, data, callback)->
-  getNextApiURL (err, apiurl)->
+
+  getNextApiURL data.proxyUrl, (err, apiurl)->
     return callback err if err
     reqOptions =
       url    : "#{apiurl}#{url}"

deleteReq = (url, data, callback)->
  [data, callback] = [callback, null] unless callback

  getNextApiURL (err, apiurl)->
    return callback err if err

    reqOptions =

    request reqOptions, wrapCallback callback

getXml = (url, data, callback)->
  getNextApiURL data.proxyUrl, (err, apiurl)->
    return callback err if err
    reqOptions =
      url    : "#{apiurl}#{url}"
