   requestJob = (key, go) ->
     #opts = key: encodeURIComponent key
     #requestWithOpts '/Job.json', opts, go
-    request "/Jobs.json/#{encodeURIComponent key}", (error, result) ->
+    doGet "/Jobs.json/#{encodeURIComponent key}", (error, result) ->
       if error
         go new Flow.Error "Error fetching job '#{key}'", error
       else

      path

  requestWithOpts = (path, opts, go) ->
    request (composePath path, opts), go

  encodeArray = (array) -> "[#{join (map array, encodeURIComponent), ','}]"


        go error, result.models

  requestModel = (key, go) ->
    doGet "/3/Models.json/#{encodeURIComponent key}", (error, result) ->
      if error
        go error, result
      else
        go error, head result.models

  requestModelBuilders = (algo, go) ->
    doGet "/2/ModelBuilders.json/#{algo}", go

  requestModelInputValidation = (algo, parameters, go) ->
    doPost "/2/ModelBuilders.json/#{algo}/parameters", parameters, go

  requestModelBuild = (algo, parameters, go) ->
    doPost "/2/ModelBuilders.json/#{algo}", parameters, go

  requestModelMetrics = (modelKey, frameKey, go) ->
    doPost "/3/ModelMetrics.json/models/#{encodeURIComponent modelKey}/frames/#{encodeURIComponent frameKey}", {}, go

  link _.requestInspect, requestInspect
  link _.requestFrames, requestFrames
