Permalink
Browse files

documentation for configure dsl

  • Loading branch information...
rossta committed Jan 16, 2013
1 parent 18998cd commit 6306a0d84e0bef850a5a77cd3707e226c5ada377
Showing with 7 additions and 9 deletions.
  1. +7 −9 lib/trello.rb
View
@@ -8,20 +8,18 @@
#
# First, set up your key information. You can get this information by {clicking here}[https://trello.com/1/appKey/generate].
#
-# include Trello
-# include Trello::Authorization
-#
-# Trello::Authorization.const_set :AuthPolicy, OAuthPolicy
-#
-# 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/authorize?key=PUBLIC_KEY_FROM_ABOVE&name=MyApp&response_type=token&scope=read,write,account&expiration=never
+# https://trello.com/1/authorize?key=TRELLO_CONSUMER_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:
#
-# OAuthPolicy.token = OAuthCredential.new 'KEY', nil
+# Trello.configure do |config|
+# config.consumer_key = TRELLO_CONSUMER_KEY
+# config.consumer_secret = TRELLO_CONSUMER_SECRET
+# config.oauth_token = TRELLO_OAUTH_TOKEN
+# config.oauth_token_secret = TRELLO_OAUTH_TOKEN_SECRET
+# end
#
# All the calls this library make to Trello require authentication using these keys. Be sure to protect them.
#

0 comments on commit 6306a0d

Please sign in to comment.