         if typeof postData == 'function'
             callback = postData
             postData = {}
-        
+        ###
+        Check if everything is set up
+        ###
+        @isSetUp(method, url, postData, callback)
+
         url = apiUrl + @.cleanUrl url
         @callback = callback
         @postData = JSON.stringify postData 


        return @

    cleanUrl : (url) ->
        if url.charAt(0) != '/'
            url = '/' + url

    new XFuse 'GET', url, callback

exports.post = (url, postData, callback) ->

    new XFuse 'POST', url, postData, callback

exports.put = (url, putData, callback) ->

    new XFuse 'PUT', url, putData, callback

exports.delete = (url, callback) ->
    
    new XFuse 'DELETE', url, callback

