On Tue, Mar 15, 2011 at 11:23 PM, Adam Klekotka <[email protected]> wrote: > Hello, > I'm trying to use Twitter API in my pyramid-based app. I have big > problem with authorization of my app. Twitter API is redirecting user > back to my site with url: > http://localhost:6543/service/twitter?oauth_token=123456&oauth_verifier=098765 > The problem is that I don't know how to make URLDispather handle url > with question mark. > > I tried with that rule but it doesn't seem to work: > config.add_route('twitter_callback', '/service/twitter? > oauth_token={param1}&oauth_verifier={param2}', > view='app.views.twitter_callback.TwitterCallback') >
Just bind '/service/twitter' The query string parameters will be available in the request.GET dict > In logs still I can see: no route matched for url.. :( > > Do you have any ideas? > > Regards, > Adam Klekotka > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
