 			parameters.oauthio = oauthio
 
 			# let oauth modules do the request
-			oa.request provider, parameters, req, (err, api_request) ->
+			oa.request provider, parameters, req, (err, options) ->
 				return cb err if err
+				api_request = request options
 
 				api_request.pipefilter = (response, dest) ->
 					dest.setHeader 'Access-Control-Allow-Origin', origin

qs = require 'querystring'
Url = require 'url'
restify = require 'restify'

oauth =
	oauth1: require '../../lib/oauth1'

			return cb err if err
			[provider, {parameters}, domaincheck] = results

			req.apiUrl = decodeURIComponent(req.params[1])
			if ! domaincheck
				return cb new @check.Error 'Origin "' + ref + '" does not match any registered domain/url on ' + @config.url.host

