phpclassic / php-shopify

PHP SDK for Shopify API
Apache License 2.0
568 stars 211 forks source link

Unable to generate access token #256

Closed Aditya-php closed 2 years ago

Aditya-php commented 2 years ago

Unable to generate the access token if i use API credentials of custom app. So please let me know that how does it possible.

tareqtms commented 2 years ago

You can use the Password as your access token for private apps.

Aditya-php commented 2 years ago

Please see the below sample code.

$config = array( 'ShopUrl' => '<>', 'ApiKey' => dd5f6, //example 'Password' =>'shpss_a50ea62f8', //example ); $obj= new ShopifySDK($config);

It's is working correct for private App but getting 'invalid access token' error when i use the credentials of custom app.

Aditya-php commented 2 years ago

@tareqtms : can you please help on this.

anikghosh256 commented 2 years ago

@Aditya-php

How to get the permanent access token for a shop

are you following this steps for your custom app?

Aditya-php commented 2 years ago

it's working fine. Thanks alot !!