podio / podio-rb

The official Ruby wrapper for the Podio API used and maintained by the Podio team
https://podio.com
MIT License
66 stars 53 forks source link

Unable to run example #11

Closed rpitting closed 10 years ago

rpitting commented 10 years ago

When I try to run the sample-app with my app id and secret, after clicking the try to authorize link, I get the following error:

undefined method `authorize_url' for nil:NilClass

The line causing the error:

 redirect Podio.client.authorize_url(:redirect_uri => redirect_uri)

When inspecting the app with RubyMine, the error seems to happen in

Faraday::Connection.new(:url => api_url, :headers => configured_headers, :request => {:client => self}) do |builder| 

Can you give me any hint?

Using OS X 10.9, ruby-2.0.0p247 and the latest podia-gem.

theflow commented 10 years ago

Hi Reiner,

seems Sinatra changed a little bit, I've updated the example. Does this work for you now?

rpitting commented 10 years ago

Yes, that fixed the problem, thank you!