Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

silktide/prospect-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

This has been moved to the Insites organisation and can now be found here

Prospect PHP Client

Example usage

Making Client

// The actual API key needs to be created at https://app.prospect.silktide.com/en_GB/admin/settings#/api
$apiKey = "0123456789abcdef";
$prospectClient = \Silktide\ProspectClient\ProspectClient::createFromApiKey($apiKey);
$reportApi = $prospectClient->getReportApi();

For more in detail examples, see the examples folder

Create a new report,

$response = $reportApi->create()
    ->setUrl("https://example.silktide.com")
    ->setAddress("Silktide LTD", "17", "Brunel Parkway", "Pride Park", "Derby", "DE24 8HR")
    ->setName("Silktide")
    ->setPhone("01322 460460")
    ->execute();

echo "ReportId: " . $response->getReportId() . "\n";