php-shopify
php-shopify copied to clipboard
how can I request the "/admin/oauth/access_scopes.json" api
Hi,
how can I request the "/admin/oauth/access_scopes.json" api to get all of the access scopes?
https://shopify.dev/docs/admin-api/rest/reference/access/accessscope
Thank you.
Hi,
I could not find support for this request either. I did it like this:
$shopify = \PHPShopify\ShopifySDK::config($config);
$adminUrl = $shopify->setAdminUrl();
$scopes = $shopify->Shop->get(null, $adminUrl . '/oauth/access_scopes.json'); //here you can use any resource, I used Shop