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

Latest commit

 

History

History
33 lines (24 loc) · 933 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 933 Bytes

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";