Browse Source

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

John Duff 12 years ago
parent
commit
a2bd1c6bda
1 changed files with 1 additions and 1 deletions
  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