oursprivacy/ingest-sdk

The Ours Server-Side REST API

v1.0.0 2025-02-27 18:12 UTC

This package is not auto-updated.

Last update: 2025-02-28 10:04:47 UTC


README

The Ours Server-Side REST API

For more information, please visit https://docs.oursprivacy.com.

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new OpenAPI\Client\Api\OursPrivacyApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$identify_request = new \OpenAPI\Client\Model\IdentifyRequest(); // \OpenAPI\Client\Model\IdentifyRequest | The payload to identify a user

try {
    $result = $apiInstance->identify($identify_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OursPrivacyApi->identify: ', $e->getMessage(), PHP_EOL;
}

Authorization

Endpoints do not require authorization.

Author

support@oursprivacy.com