form-synergy / web-essentials
This template will install web essentials via PHP API. Including: Strategy, objectives and modules.
dev-master
2019-04-07 11:13 UTC
Requires
- php: >=7.0
- form-synergy/php-api: >=1
Replaces
- form-synergy/web-essentials: dev-master
This package is auto-updated.
Last update: 2022-01-07 17:42:07 UTC
README
This template will install web essentials via PHP API. Including: Strategy, objectives and modules.
Install using composer
composer require form-synergy/web-essentials
Include the library
require '/vendor/autoload.php';
Enable session management
\FormSynergy\Session::enable();
Import the Form Synergy class
use \FormSynergy\Fs as FS;
You will need to retrieve your credentials in the Form Synergy console.
Console Access: https://formsynergy.com/console/
- $profileid = '';
- $apikey = '';
- $apisecret = '';
If you are a reseller
- $resellerid = '';
Configuration
FS::Config([ 'version' => 'v1', 'protocol' => 'https', 'endpoint' => 'api.formsynergy.com', 'apikey' => $apikey, 'secretkey' => $secretkey, //'resellerid' => $resellerid, If you are a reseller 'max_auth_count' => 15, ]);
local storage
Enable local storage to store downloads and responses.
FS::Storage( '/', 'local-storage' );
Load account
Load and start managing an account.
$api = FS::Api()->Load($profileid);
Run script
update the empty values with the appropriate information.
\FormSynergy\Web_Essentials::Run([ 'fname' => '', 'lname' => '', 'email' => '', 'siteid' => '' ])