Undefined variable: request when i try to use oauth
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
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