An example to authenticate your application to SPHERE.IO and get your products, using PHP and the Sphere PHP SDK.
Add your project key, client id and secret to config.php
.
# Install Composer if not installed yet
curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the dependencies:
composer install
Then activate the php builtin web server
cd <project_folder>
php -S localhost:8000 -t sdk/
Now navigate to http://localhost:8000 in your browser.
Add your project key, client id and secret to config.php
.
Then activate the php builtin web server
cd <project_folder>
php -S localhost:8000 -t raw/
Now navigate to http://localhost:8000 in your browser.