oursprivacy / ingest-sdk
The Ours Server-Side REST API
v1.0.0
2025-02-27 18:12 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
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.