瀏覽代碼

fix variable name, we were referring to code instead of access_token

John Duff 12 年之前
父節點
當前提交
a2bd1c6bda
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.rdoc

+ 1 - 1
README.rdoc

@@ -50,7 +50,7 @@ ShopifyAPI uses ActiveResource to communicate with the REST web service. ActiveR
 
 5. Use that token to instantiate a session that is ready to make calls to the given shop.
 
-    token = params[:code]
+    token = params[:access_token]
     session = ShopifyAPI::Session.new("yourshopname.myshopify.com", token)
     session.valid?  # returns true