php-shopify icon indicating copy to clipboard operation
php-shopify copied to clipboard

how can I request the "/admin/oauth/access_scopes.json" api

Open www-YM opened this issue 5 years ago • 1 comments

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.

www-YM avatar Sep 26 '20 05:09 www-YM

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

bbosternak avatar Oct 04 '21 15:10 bbosternak