@@ -45,7 +45,7 @@ To install/integrate a shop you will need to initiate an oauth authentication wi
45
45
They are:
46
46
1. Shop url (eg. example.myshopify.com)
47
47
2. scope (eg. write_products, read_orders, etc)
48
- 2. redirect url (eg. mydomain.com/process_oauth_result)
48
+ 2. redirect url (eg. http:// mydomain.com/process_oauth_result )
49
49
50
50
This process will enable us to obtain the shops access token
51
51
@@ -56,14 +56,14 @@ Route::get("install_shop",function()
56
56
{
57
57
$shopUrl = "example.myshopify.com";
58
58
$scope = ["write_products","read_orders"];
59
- $redirectUrl = "mydomain.com/process_shopify_data";
59
+ $redirectUrl = "http:// mydomain.com/process_shopify_data";
60
60
61
61
$shopify = Shopify::setShopUrl($shopUrl);
62
62
return redirect()->to($shopify->getAuthorizeUrl($scope,$redirectUrl));
63
63
});
64
64
```
65
65
66
- Let retrieve access token
66
+ Let's retrieve access token
67
67
68
68
``` php5
69
69
Route::get("process_oauth_result",function(\Illuminate\Http\Request $request)
@@ -97,7 +97,7 @@ $products = Shopify::setShopUrl($shopUrl)->setAccessToken($accessToken)->get("ad
97
97
To pass query params
98
98
99
99
``` php5
100
- $shopify = Shopify::setShopUrl($shopUrl)->setAccessToken($accessToken)
100
+ $shopify = Shopify::setShopUrl($shopUrl)->setAccessToken($accessToken);
101
101
$products = $shopify->get("admin/products.json", ["limit"=>20, "page" => 1]);
102
102
```
103
103
0 commit comments