# MyDataMyConsent::DataProviderDiscoveryApi
All URIs are relative to https://api.mydatamyconsent.com
Method | HTTP request | Description |
---|---|---|
get_data_provider_by_id | GET /v1/data-providers/{providerId} | Get a Data Provider details by provider id. |
get_data_providers | GET /v1/data-providers | Discover all data providers in My Data My Consent by country and filters. |
# get_data_provider_by_id
get_data_provider_by_id(provider_id)
Get a Data Provider details by provider id.
# Examples
require 'time'
require 'mydatamyconsent'
api_instance = MyDataMyConsent::DataProviderDiscoveryApi.new
provider_id = 'provider_id_example' # String | Data provider id.
begin
# Get a Data Provider details by provider id.
result = api_instance.get_data_provider_by_id(provider_id)
p result
rescue MyDataMyConsent::ApiError => e
puts "Error when calling DataProviderDiscoveryApi->get_data_provider_by_id: #{e}"
end
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
# Using the get_data_provider_by_id_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> get_data_provider_by_id_with_http_info(provider_id)
begin
# Get a Data Provider details by provider id.
data, status_code, headers = api_instance.get_data_provider_by_id_with_http_info(provider_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <DataProvider>
rescue MyDataMyConsent::ApiError => e
puts "Error when calling DataProviderDiscoveryApi->get_data_provider_by_id_with_http_info: #{e}"
end
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
provider_id | String | Data provider id. |
# Return type
# Authorization
No authorization required
# HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/xml
# get_data_providers
get_data_providers(opts)
Discover all data providers in My Data My Consent by country and filters.
# Examples
require 'time'
require 'mydatamyconsent'
api_instance = MyDataMyConsent::DataProviderDiscoveryApi.new
opts = {
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: 56, # Integer | Page number.
page_size: 56, # Integer | Number of items to return.
country_iso2_code: 'country_iso2_code_example' # String | ISO2 Country code.
}
begin
# Discover all data providers in My Data My Consent by country and filters.
result = api_instance.get_data_providers(opts)
p result
rescue MyDataMyConsent::ApiError => e
puts "Error when calling DataProviderDiscoveryApi->get_data_providers: #{e}"
end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Using the get_data_providers_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> get_data_providers_with_http_info(opts)
begin
# Discover all data providers in My Data My Consent by country and filters.
data, status_code, headers = api_instance.get_data_providers_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <DataProviderPaginatedList>
rescue MyDataMyConsent::ApiError => e
puts "Error when calling DataProviderDiscoveryApi->get_data_providers_with_http_info: #{e}"
end
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 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 | Integer | Page number. | [optional][default to 1] |
page_size | Integer | Number of items to return. | [optional][default to 25] |
country_iso2_code | String | ISO2 Country code. | [optional][default to 'IN'] |
# Return type
# Authorization
No authorization required
# HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/xml