PHP code example of webmarketer / webmarketer-plugin-core-php
1. Go to this page and download the library: Download webmarketer/webmarketer-plugin-core-php 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/ */
webmarketer / webmarketer-plugin-core-php example snippets
try {
// create an instance of the SDK with the desired configuration
$client = new \Webmarketer\WebmarketerSdk([
'credential' => '{ ...jsonSa }',
'scopes' => 'test',
'default_project_id' => 'webmarketer-awesome-project'
]);
} catch (\Webmarketer\Exception\DependencyException $dep_ex) {
// SDK init throw a dependency exception if