|
@@ -36,7 +36,7 @@ ShopifyAPI uses ActiveResource to communicate with the REST web service. ActiveR
|
|
shop_url = "https://#{API_KEY}:#{PASSWORD}@SHOP_NAME.myshopify.com/admin"
|
|
shop_url = "https://#{API_KEY}:#{PASSWORD}@SHOP_NAME.myshopify.com/admin"
|
|
ShopifyAPI::Base.site = shop_url
|
|
ShopifyAPI::Base.site = shop_url
|
|
|
|
|
|
- That's it, you're done, skip to step 7 and start using the API!
|
|
|
|
|
|
+ That's it, you're done, skip to step 6 and start using the API!
|
|
|
|
|
|
For a partner app you will need to supply two parameters to the Session class before you instantiate it:
|
|
For a partner app you will need to supply two parameters to the Session class before you instantiate it:
|
|
|
|
|
|
@@ -113,7 +113,7 @@ ShopifyAPI uses ActiveResource to communicate with the REST web service. ActiveR
|
|
|
|
|
|
products = ShopifyAPI::Session.temp("SHOP_NAME.myshopify.com", token) { ShopifyAPI::Product.find(:all) }
|
|
products = ShopifyAPI::Session.temp("SHOP_NAME.myshopify.com", token) { ShopifyAPI::Product.find(:all) }
|
|
|
|
|
|
-8. If you want to work with another shop, you'll first need to clear the session:
|
|
|
|
|
|
+7. If you want to work with another shop, you'll first need to clear the session:
|
|
|
|
|
|
ShopifyAPI::Base.clear_session
|
|
ShopifyAPI::Base.clear_session
|
|
|
|
|