2014-07-25 49 views
0

因此,我正在通過Shopify的oAuth2過程,並且我正在執行以下操作。可以通過shopify傳遞附加參數oAuth2

SHOP_NAME.myshopify.com/admin/oauth/authorize?client_id=xxxxx & scope_string = XXX & REDIRECT_URI = 'mysite.com/shopify_callback'

然後交換用於通過ACCESS_TOKEN臨時令牌做

SHOP_NAME.myshopify.com/admin/oauth/access_token?client_id=xxxxx & client_secret = XXXXX &代碼= XXXX

我然後回到我存儲的access_token--一切都很好。然而,獲取應用程序的初始啓動點可能是幾個地方之一,我想傳遞一個額外的參數以及oAuth2參數..類似於

SHOP_NAME.myshopify.com/admin/oauth/授權?CLIENT_ID = XXXXX & scope_string = XXX & REDIRECT_URI = 'mysite.com/shopify_callback' & myparam = 'UNIQUEID'

SHOP_NAME.myshopify.com/admin/oauth/access_token?client_id=xxxxx & client_secret = XXXXX &代碼= xxxx & myparam ='uniqueid'

以便返回是access_tokenmyparam

有沒有辦法做到這一點?

謝謝。

回答

0

可以在連接所需的參數redirect_uri

SHOP_NAME.myshopify.com/admin/oauth/authorize?client_id=xxxxx & scope_string = XXX & REDIRECT_URI = 'mysite.com/shopify_callback?myparam = UNIQUEID'