Skip to content

Latest commit

 

History

History
257 lines (184 loc) · 8.75 KB

GeneralDataProctectionRegulationApi.md

File metadata and controls

257 lines (184 loc) · 8.75 KB

Membercare\Client\GeneralDataProctectionRegulationApi

All URIs are relative to /

Method HTTP request Description
getConsentDeclarationCategories GET /api/v1/generalDataProctectionRegulation/consentDeclarationCategories Retrieves ConsentDeclarations ordered by MajorVerson and MinorVersion
getConsentDeclarations GET /api/v1/generalDataProctectionRegulation/consentDeclarations Retrieves ConsentDeclarations ordered by MajorVerson and MinorVersion
getCurrentConsentDeclaration GET /api/v1/generalDataProctectionRegulation/currentConsentDeclaration/{consentDeclarationCategoryId} Retrieves current ConsentDeclaration
getCurrentTerms GET /api/v1/generalDataProctectionRegulation/currentTerms Retrieves current Terms
getTerms GET /api/v1/generalDataProctectionRegulation/terms Retrieves Terms ordered by MajorVerson and MinorVersion

getConsentDeclarationCategories

\Membercare\Client\Model\ConsentDeclaration[] getConsentDeclarationCategories($token, $only_valid)

Retrieves ConsentDeclarations ordered by MajorVerson and MinorVersion

Example

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

$apiInstance = new Membercare\Client\Api\GeneralDataProctectionRegulationApi(
    // 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()
);
$token = "token_example"; // string | access token
$only_valid = true; // bool | 

try {
    $result = $apiInstance->getConsentDeclarationCategories($token, $only_valid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GeneralDataProctectionRegulationApi->getConsentDeclarationCategories: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
token string access token
only_valid bool [optional]

Return type

\Membercare\Client\Model\ConsentDeclaration[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getConsentDeclarations

\Membercare\Client\Model\ConsentDeclaration[] getConsentDeclarations($token, $consent_declaration_category_id, $only_valid)

Retrieves ConsentDeclarations ordered by MajorVerson and MinorVersion

Example

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

$apiInstance = new Membercare\Client\Api\GeneralDataProctectionRegulationApi(
    // 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()
);
$token = "token_example"; // string | access token
$consent_declaration_category_id = 789; // int | 
$only_valid = true; // bool | 

try {
    $result = $apiInstance->getConsentDeclarations($token, $consent_declaration_category_id, $only_valid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GeneralDataProctectionRegulationApi->getConsentDeclarations: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
token string access token
consent_declaration_category_id int [optional]
only_valid bool [optional] [default to true]

Return type

\Membercare\Client\Model\ConsentDeclaration[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getCurrentConsentDeclaration

\Membercare\Client\Model\ConsentDeclaration getCurrentConsentDeclaration($consent_declaration_category_id, $token)

Retrieves current ConsentDeclaration

Example

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

$apiInstance = new Membercare\Client\Api\GeneralDataProctectionRegulationApi(
    // 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()
);
$consent_declaration_category_id = 789; // int | 
$token = "token_example"; // string | access token

try {
    $result = $apiInstance->getCurrentConsentDeclaration($consent_declaration_category_id, $token);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GeneralDataProctectionRegulationApi->getCurrentConsentDeclaration: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
consent_declaration_category_id int
token string access token

Return type

\Membercare\Client\Model\ConsentDeclaration

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getCurrentTerms

\Membercare\Client\Model\Terms getCurrentTerms($token)

Retrieves current Terms

Example

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

$apiInstance = new Membercare\Client\Api\GeneralDataProctectionRegulationApi(
    // 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()
);
$token = "token_example"; // string | access token

try {
    $result = $apiInstance->getCurrentTerms($token);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GeneralDataProctectionRegulationApi->getCurrentTerms: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
token string access token

Return type

\Membercare\Client\Model\Terms

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getTerms

\Membercare\Client\Model\Terms[] getTerms($token, $only_valid)

Retrieves Terms ordered by MajorVerson and MinorVersion

Example

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

$apiInstance = new Membercare\Client\Api\GeneralDataProctectionRegulationApi(
    // 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()
);
$token = "token_example"; // string | access token
$only_valid = true; // bool | 

try {
    $result = $apiInstance->getTerms($token, $only_valid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GeneralDataProctectionRegulationApi->getTerms: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
token string access token
only_valid bool [optional]

Return type

\Membercare\Client\Model\Terms[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]