Code Monkey home page Code Monkey logo

ruby_desk's People

Contributors

aseldawy avatar flaviogranero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ruby_desk's Issues

Unable to Connect

I am facing the following error when trying to do a connection to oDesk:

?V*N-*K-?/??MU?24?07276?4?QJ-*?/R??V*.I,)-V?210?QJ?OI?2sS??Ӂ<?м?Ғ???̪???Zk  ?U
/app/vendor/bundle/ruby/1.9.1/gems/ruby_desk-0.9.1/lib/ruby_desk/connector.rb:110:in `invoke_api_call'
/app/vendor/bundle/ruby/1.9.1/gems/ruby_desk-0.9.1/lib/ruby_desk/connector.rb:121:in `prepare_and_invoke_api_call'
/app/vendor/bundle/ruby/1.9.1/gems/ruby_desk-0.9.1/lib/ruby_desk/job.rb:259:in `search'

Please comment.

get_frob method error when using desktop script

Hi @aseldawy,

I'm trying to write a ruby script that gets some data from oDesk....The documentation calls for using "rd.auth_url" but I think that's only for a web application, not a desktop, correct? For desktops you have to call get_frob first before calling desktop_auth_url if I'm reading correctly...When I do so, I get an error like:

ruby-1.9.3-p374/lib/ruby/1.9.1/rexml/parent.rb:59:in []': can't convert String into Integer (TypeError) from /home/kyle/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/rexml/parent.rb:59:in[]'
from /home/kyle/.rvm/gems/ruby-1.9.3-p374@odesk/gems/ruby_desk-0.9.1/lib/ruby_desk/connector.rb:185:in `get_frob'

I have the API keys setup (dummy keys shown here for security reasons) and am calling it this way in my script:

ODESK_API_KEYS = {:key=>"yyy",:secret=>"zzz"}
rd = RubyDesk::Connector.new(ODESK_API_KEYS[:key], ODESK_API_KEYS[:secret])
p rd.get_frob

The issue is actually in the invoke_api_call(api_call) method in connector.rb. When "https://www.odesk.com/api/auth/v1/keys/frobs.json" is called, the response is code 200 but the data returned is nil.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.