|
@@ -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
|
|
|
|