I have a private app. I include this at the .env file
SHOPIFY_KEY = "your key"
SHOPIFY_SECRET= "your secret "
SHOPIFY_REDIRECT = " your redirect"
this is my code in my controller:
foo = Shopify::make($this->shop, $this->scopes);
return $this->foo->redirect();
}
public function getResponse(Request $request)
{
$this->getPermission();
$user = $this->foo->auth()->getUser();
return $this->foo->auth()->get('products.json', ['fields'=>'id,images,title']);
}
}
When I navigate my sample/oauth/authorize
error occur
Client error: `POST https://sample-3.myshopify.com//admin/oauth/access_token` resulted in a `400 Bad Request` response:
{"error":"invalid_request"}
I have a private app. I include this at the .env file
SHOPIFY_KEY = "your key"
SHOPIFY_SECRET= "your secret "
SHOPIFY_REDIRECT = " your redirect"
this is my code in my controller:
foo = Shopify::make($this->shop, $this->scopes); return $this->foo->redirect(); } public function getResponse(Request $request) { $this->getPermission(); $user = $this->foo->auth()->getUser(); return $this->foo->auth()->get('products.json', ['fields'=>'id,images,title']); } } When I navigate my sample/oauth/authorize error occur Client error: `POST https://sample-3.myshopify.com//admin/oauth/access_token` resulted in a `400 Bad Request` response: {"error":"invalid_request"}