1. Go to this page and download the library: Download gztango/php-shoplazza library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
//your_redirect_url.php
PHPShoplazza\ShoplazzaSDK::config($config);
$accessToken = \PHPShoplazza\AuthHelper::getAccessToken();
//Now store it in database or somewhere else
//your_authorize_and_redirect_url.php
PHPShoplazza\ShoplazzaSDK::config($config);
$accessToken = \PHPShoplazza\AuthHelper::createAuthRequest($scopes);
//Now store it in database or somewhere else
$shoplazza = new PHPShoplazza\ShoplazzaSDK;
$shoplazza = new PHPShoplazza\ShoplazzaSDK($config);
$blogID = 23564666666;
$articleID = 125336666;
$updateArtilceInfo = array(
"title" => "My new Title",
"author" => "Your name",
"tags" => "Tags, Will Be, Updated",
"body_html" => "<p>Look, I can even update through a web service.<\/p>",
);
$shoplazza->Blog($blogID)->Article($articleID)->put($updateArtilceInfo);