bigcommerce-api-php icon indicating copy to clipboard operation
bigcommerce-api-php copied to clipboard

Undefined variable: request when i try to use oauth

Open zap-deepak opened this issue 8 years ago • 1 comments

i have used following steps composer require bigcommerce/api composer update

require('vendor/autoload.php'); use Bigcommerce\Api\Client as Bigcommerce;

when i try to configure Basic Auth then its working but when i try same with OAuth

then it show error

Notice: Undefined variable: request in /var/www/html/tests/bigcommerce/test/index.php on line 25

Fatal error: Call to a member function get() on a non-object in /var/www/html/tests/bigcommerce/test/index.php on line 25

also i want to know which redirect url should i have to use. $object->redirect_uri

zap-deepak avatar May 22 '17 12:05 zap-deepak

If you are accessing the API in a stand alone script you don't need to get a temporary Access Token you can access the API directly using the ACCESS TOKEN provided when you created a V3 API credentials. More info here https://forum.bigcommerce.com/s/question/0D51B00003sOukESAS/access-token-for-stand-alone-php-script-api-v3

behindthepage avatar Sep 15 '17 00:09 behindthepage