Open Er-Kalpesh opened 4 years ago
bump this, docs could do with explaining the $request object being passed in the example.
yeah, is there anyone can help.. I have no idea which values should be for the 'code', 'context' and 'scope'
I am stuck at the $request issue too. Anyone figure this out?
Current documentation doesn't reflect the current API credential system. We only need the Store Hash, Auth Token, and Client ID to access. The following code works:
<?php
require 'vendor/autoload.php';
use Bigcommerce\Api\Client as Bigcommerce;
Bigcommerce::configure(array(
'client_id' => '{client-id}}',
'auth_token' => '{auth-token}',
'store_hash' => '{store-hash}}'
));
$ping = Bigcommerce::getTime();
if ($ping) echo $ping->format('H:i:s');
?>
The documentation is still out of date. @brodsolutions it isn't clear where you generate the auth-token.
and I am not even able to start step 1 here.
Issues:
So the question here is how to get a username? bigcommerece user only created using email address so how to get username here?
In order to obtain the auth_token you would consume Bigcommerce::getAuthToken method
here the question is what is the $request variable? also, redirect_uri is the bigcommerce store URL or my site URL?
Please can anyone help to get started with this?