Ver código fonte

Update README with correct token name.

David Underwood 13 anos atrás
pai
commit
edd5d8cec0
1 arquivos alterados com 2 adições e 2 exclusões
  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