I am new to the Big-commerce.
I am try to connect the PHP API of the Big-commerce below is my code.
BigCommerce_Api::configure(array(
'store_url' => 'mystore url',
'username' => 'admin',
'api_key' => 'my apikey'
));
$ping = BigCommerce_Api::getTime();
if ($ping)
{
echo $ping->format('H:i:s');
}
else
{
echo "error in connection";
}
i am try to display the time if connection is completed but getting error.
is there any problem in my code?
Please help me out form this problem.
By default generated URL looks like
https://uniquestoreid.mybigcommerce.com/api/v2/, when using BigCommerce API removeapi/v2from URL, your config should look like this: