Skip to content

metricwise/metricwise-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metricwise API (PHP)

Example

require_once('MetricWiseAPI.php');

$mwapi = new MetricWiseAPI();
$mwapi->setHostname('https://api-XXX.metricwise.net');
$mwapi->setUsername('MarketingPartner');
$mwapi->setAccessKey('secretKey'); # Governs system access
$mwapi->setApiKey('secretApi'); # Governs rate limiting
$lead = array(
	'leadsource' => 'Internet',
	'leadstatus' => 'Hot',
	'description' => 'Lead is interested in...',
	'firstname' => 'Jon',
	'lastname' => 'Doe', # Required field
	'lane' => '123 Main St',
	'city' => 'Small Town',
	'code' => '12345',
	'email' => '[email protected]',
	'phone' => '5558675309',
);
if (!$mwapi->submitLead()) {
	echo $mwapi->getError();
} else {
	echo 'OK';
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published