Permalink
Browse files

Update README with correct token name.

  • Loading branch information...
1 parent d1ea53c commit edd5d8cec0c0977d489f14f7bb68ac0683084bfc @davefp davefp committed May 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rdoc
View
@@ -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

0 comments on commit edd5d8c

Please sign in to comment.