You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
namespace App\Http\Controllers;
use Shopify;
use Illuminate\Http\Request;
class ShopifyController extends Controller
{
protected $shop = "testing-4pi.myshopify.com";
protected $foo;
protected $scopes = ['read_products','read_themes'];
public function getPermission()
{
$this->foo = Shopify::make($this->shop, $this->scopes);
return $this->foo->redirect();
}
public function getResponse(Request $request)
{
$this->getPermission();
// Get user data, you can store it in the data base
$user = $this->foo->auth()->getUser();
//GET request to products.json
return $this->foo->auth()->get('products', ['fields'=>'id,images,title']);
}
}
The text was updated successfully, but these errors were encountered:
I see this issue was posted and fixed in a new pull request and I already have the fix in my code, but I am still facing this problem.
I added the url to web.php
Here is my controller
The text was updated successfully, but these errors were encountered: