Answer the question
In order to leave comments, you need to log in
Invalid_token error when making requests to Trello API, what did you miss?
I'm making a "Trello-Hub" project using the Trello API.
I use the ruby-trello, omniauth-trello and devise gems.
The ruby-trello gem " https://github.com/jeremytregunna/ruby-trello " is set up following the "Basic Authorization" example (found in the docs). I get all the data (from my dev account), I can create, delete, change - everything is ok here.
I implemented login and registration through Devise, as well as login through Trello account. Now my task is to make sure that requests go not to my dev account, but to the Trello user account (who entered the project through Trello). There is an instruction in the gem ( https://github.com/jeremytregunna/ruby-trello#mult...
I keep getting an invalid token error. Everything seems obvious)
Here is an example from the docs:
@client_bob = Trello::Client.new(
:consumer_key => YOUR_CONSUMER_KEY,
:consumer_secret => YOUR_CONSUMER_SECRET,
:oauth_token => "Bob's access token",
:oauth_token_secret => "Bob's access secret"
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question