瀏覽代碼

Update README with correct token name.

David Underwood 13 年之前
父節點
當前提交
edd5d8cec0
共有 1 個文件被更改,包括 2 次插入2 次删除
  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