validation后如何通过httparty gem传递参数

我正在努力将odesk API导入我的本地项目。 因为我使用omniauth-odesk gem进行身份validation,使用httparty gem来调用访问odesk信息的http请求。

在我的Gemfile.rb中

gem 'omniauth-odesk' gem 'httparty' 

在odesk_controller.rb中

 class OdeskController {"Authorization"=>"Token token=\"06ede858bcdf8a5fedfa9119fd7074c4\""} end def check_profile end end 

在视图/ odesk / search_job.html.erb

  

检查信息如下:

 #1395822483, "error"=>{"status"=>400, "code"=>400, "message"=>"Malformed request: standard autorization is not supported for this API, use an application key"}}, @response=#, @headers={"server"=>["nginx"], "content-type"=>["application/json"], "content-length"=>["155"], "x-odesk-error-code"=>["400"], "x-odesk-error-message"=>["Malformed request: standard autorization is not supported for this API, use an application key"], "expires"=>["Fri, 13 Oct 2000 05:00:00 GMT"], "last-modified"=>["Wed, 26 Mar 2014 08:28:03 GMT"], "cache-control"=>["no-store, no-cache, must-revalidate", "post-check=0, pre-check=0"], "pragma"=>["no-cache"], "vary"=>["Cookie,Accept-Encoding"], "date"=>["Wed, 26 Mar 2014 08:28:03 GMT"], "connection"=>["close"]}> 

我正在为odesk API使用正确的api密钥和密钥。 和令牌也是正确的。 但如果我错了,请检查并告诉我。

我正在按照以下链接进行http请求

http://developers.odesk.com/w/page/12364012/search%20jobs

谢谢