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
Requires
- php: ^7.4|^8
- ext-json: *
- guzzlehttp/guzzle: ~6.0|~7.0
Requires (Dev)
- phpstan/phpstan: ~1
- symfony/dotenv: ^5.1
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";