# 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

DataProvider get_data_provider_by_id(provider_id)

Get a Data Provider details by provider id.

# Example

import time
import mydatamyconsent
from mydatamyconsent.api import data_provider_discovery_api
from mydatamyconsent.model.data_provider import DataProvider
from mydatamyconsent.model.error import Error
from pprint import pprint
# Defining the host is optional and defaults to https://api.mydatamyconsent.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mydatamyconsent.Configuration(
    host = "https://api.mydatamyconsent.com"
)


# Enter a context with an instance of the API client
with mydatamyconsent.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = data_provider_discovery_api.DataProviderDiscoveryApi(api_client)
    provider_id = "providerId_example" # str | Data provider id.

    # example passing only required values which don't have defaults set
    try:
        # Get a Data Provider details by provider id.
        api_response = api_instance.get_data_provider_by_id(provider_id)
        pprint(api_response)
    except mydatamyconsent.ApiException as e:
        print("Exception when calling DataProviderDiscoveryApi->get_data_provider_by_id: %s\n" % e)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

# Parameters

Name Type Description Notes
provider_id str Data provider id.

# Return type

DataProvider

# Authorization

No authorization required

# HTTP request headers

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

# HTTP response details

Status code Description Response headers
200 Success -
500 Server Error -
400 Bad Request -
404 Not Found -

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

# get_data_providers

DataProviderPaginatedList get_data_providers()

Discover all data providers in My Data My Consent by country and filters.

# Example

import time
import mydatamyconsent
from mydatamyconsent.api import data_provider_discovery_api
from mydatamyconsent.model.error import Error
from mydatamyconsent.model.data_provider_paginated_list import DataProviderPaginatedList
from pprint import pprint
# Defining the host is optional and defaults to https://api.mydatamyconsent.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mydatamyconsent.Configuration(
    host = "https://api.mydatamyconsent.com"
)


# Enter a context with an instance of the API client
with mydatamyconsent.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = data_provider_discovery_api.DataProviderDiscoveryApi(api_client)
    account_type = "accountType_example" # str | Account type. (optional)
    document_type = "documentType_example" # str | Document type. (optional)
    organization_category = "organizationCategory_example" # str | Organization category. (optional)
    page_no = 1 # int | Page number. (optional) if omitted the server will use the default value of 1
    page_size = 25 # int | Number of items to return. (optional) if omitted the server will use the default value of 25
    country_iso2_code = "IN" # str | ISO2 Country code. (optional) if omitted the server will use the default value of "IN"

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        # Discover all data providers in My Data My Consent by country and filters.
        api_response = api_instance.get_data_providers(account_type=account_type, document_type=document_type, organization_category=organization_category, page_no=page_no, page_size=page_size, country_iso2_code=country_iso2_code)
        pprint(api_response)
    except mydatamyconsent.ApiException as e:
        print("Exception when calling DataProviderDiscoveryApi->get_data_providers: %s\n" % e)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

# Parameters

Name Type Description Notes
account_type str Account type. [optional]
document_type str Document type. [optional]
organization_category str Organization category. [optional]
page_no int Page number. [optional] if omitted the server will use the default value of 1
page_size int Number of items to return. [optional] if omitted the server will use the default value of 25
country_iso2_code str ISO2 Country code. [optional] if omitted the server will use the default value of "IN"

# Return type

DataProviderPaginatedList

# Authorization

No authorization required

# HTTP request headers

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

# HTTP response details

Status code Description Response headers
200 Success -
500 Server Error -
400 Bad Request -

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

Last Updated: 6/19/2022, 7:27:56 PM