Browse Source

Update README with correct token name.

David Underwood 13 years ago
parent
commit
edd5d8cec0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      README.rdoc

+ 2 - 2
README.rdoc

@@ -41,9 +41,9 @@ with the following parameters:
 * scope – Required – The list of required scopes (explained below)
 * redirect_uri – Optional – The URL that the merchant will be sent to once authentication is complete. Must be the same host as the Return URL specified in the application settings
 
-5. Once authorized, the shop redirects the owner to the return URL of your application where the "token" gets sent to (it's param name is just "t"). Use that token to instantiate a "valid" session, that is ready to make calls to that particular shop.
+5. Once authorized, the shop redirects the owner to the return URL of your application where the "token" gets sent to (it's param name is "code"). Use that token to instantiate a "valid" session, that is ready to make calls to that particular shop.
 
-    token = params[:t]
+    token = params[:code]
     session = ShopifyAPI::Session.new("yourshopname.myshopify.com", token)
     session.valid?  # returns true