Permalink
Browse files

changed oauth url for token to correct one trello.com/1/authorize

  • Loading branch information...
1 parent 7de9ee1 commit a6844fae074e7b618d1f2f7dc1bbc5c6a85fd62a @FredrikL FredrikL committed Nov 29, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/trello.rb
  2. +1 −1 spec/integration/integration_test.rb
  3. +1 −1 test.rb
View
2 lib/trello.rb
@@ -15,7 +15,7 @@
# OAuthPolicy.consumer_credential = OAuthCredential.new 'PUBLIC_KEY', 'SECRET'
#
# You can get the key by going to this url in your browser:
-# https://trello.com/1/connect?key=PUBLIC_KEY_FROM_ABOVE&name=MyApp&response_type=token&scope=read,write,account&expiration=never
+# https://trello.com/1/authorize?key=PUBLIC_KEY_FROM_ABOVE&name=MyApp&response_type=token&scope=read,write,account&expiration=never
# Only request the permissions you need; i.e., scope=read if you only need read, or scope=write if you only need write. Comma separate scopes you need.
# If you want your token to expire after 30 days, drop the &expiration=never. Then run the following code, where KEY denotes the key returned from the
# url above:
View
2 spec/integration/integration_test.rb
@@ -16,7 +16,7 @@ def self.included(klass)
before :all do
# Getting developer/member key
# 1. https://trello.com/1/appKey/generate
- # 2. https://trello.com/1/connect?key=<public_key_here>&name=RubyTrelloIntegrationTests&response_type=token
+ # 2. https://trello.com/1/authorize?key=<public_key_here>&name=RubyTrelloIntegrationTests&response_type=token
# See: https://trello.com/board/trello-public-api/4ed7e27fe6abb2517a21383d
@developer_public_key = ENV["DEVELOPER_PUBLIC_KEY"]
View
2 test.rb
@@ -12,7 +12,7 @@
OAuthPolicy.consumer_credential = OAuthCredential.new 'PUBLIC_KEY', 'SECRET'
# First arg is the access token key, second is presently not used -- trello bug?
# You can get the key by going to this url in your browser:
-# https://trello.com/1/connect?key=PUBLIC_KEY_FROM_ABOVE&name=MyApp&response_type=token&scope=read,write,account&expiration=never
+# https://trello.com/1/authorize?key=PUBLIC_KEY_FROM_ABOVE&name=MyApp&response_type=token&scope=read,write,account&expiration=never
# Only request the permissions you need; i.e., scope=read if you only need read, or scope=write if you only need write. Comma separate scopes you need.
# If you want your token to expire after 30 days, drop the &expiration=never.
OAuthPolicy.token = OAuthCredential.new 'ACCESS_TOKEN_KEY', nil

0 comments on commit a6844fa

Please sign in to comment.