# MyDataMyConsent\DataProviderDiscoveryApi
All URIs are relative to https://api.mydatamyconsent.com.
Method | HTTP request | Description |
---|---|---|
getDataProviderById() | GET /v1/data-providers/{providerId} | Get a Data Provider details by provider id. |
getDataProviders() | GET /v1/data-providers | Discover all data providers in My Data My Consent by country and filters. |
# getDataProviderById()
getDataProviderById($provider_id): \MyDataMyConsent\Model\DataProvider
1
Get a Data Provider details by provider id.
# Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new MyDataMyConsent\Api\DataProviderDiscoveryApi(
// 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()
);
$provider_id = 'provider_id_example'; // string | Data provider id.
try {
$result = $apiInstance->getDataProviderById($provider_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DataProviderDiscoveryApi->getDataProviderById: ', $e->getMessage(), PHP_EOL;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
provider_id | string | Data provider id. |
# Return type
\MyDataMyConsent\Model\DataProvider
# Authorization
No authorization required
# HTTP request headers
- Content-Type: Not defined
- Accept:
application/json
,application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
# getDataProviders()
getDataProviders($account_type, $document_type, $organization_category, $page_no, $page_size, $country_iso2_code): \MyDataMyConsent\Model\DataProviderPaginatedList
1
Discover all data providers in My Data My Consent by country and filters.
# Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new MyDataMyConsent\Api\DataProviderDiscoveryApi(
// 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()
);
$account_type = 'account_type_example'; // string | Account type.
$document_type = 'document_type_example'; // string | Document type.
$organization_category = 'organization_category_example'; // string | Organization category.
$page_no = 1; // int | Page number.
$page_size = 25; // int | Number of items to return.
$country_iso2_code = 'IN'; // string | ISO2 Country code.
try {
$result = $apiInstance->getDataProviders($account_type, $document_type, $organization_category, $page_no, $page_size, $country_iso2_code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DataProviderDiscoveryApi->getDataProviders: ', $e->getMessage(), PHP_EOL;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
account_type | string | Account type. | [optional] |
document_type | string | Document type. | [optional] |
organization_category | string | Organization category. | [optional] |
page_no | int | Page number. | [optional] [default to 1] |
page_size | int | Number of items to return. | [optional] [default to 25] |
country_iso2_code | string | ISO2 Country code. | [optional] [default to 'IN'] |
# Return type
\MyDataMyConsent\Model\DataProviderPaginatedList
# Authorization
No authorization required
# HTTP request headers
- Content-Type: Not defined
- Accept:
application/json
,application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]