insites/insites-sdk-php

There is no license information available for the latest version (2.0.1) of this package.

PHP client for integrating Insites into your projects.

2.0.1 2023-08-08 13:57 UTC

This package is auto-updated.

Last update: 2024-10-08 16:31:09 UTC


README

Example usage

Making Client

// The actual API key needs to be created at https://app.insites.com/en_GB/admin/settings#/api
$apiKey = "0123456789abcdef";
$insitesClient = \Insites\SDK\Client::createFromApiKey($apiKey);
$reportApi = $insitesClient->getReportApi();

For more in detail examples, see the examples folder

Create a new report,

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

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