# MyDataMyConsent.Api.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

DataProvider GetDataProviderById (string providerId)

Get a Data Provider details by provider id.

# Example

using System.Collections.Generic;
using System.Diagnostics;
using MyDataMyConsent.Api;
using MyDataMyConsent.Client;
using MyDataMyConsent.Models;

namespace Example
{
    public class GetDataProviderByIdExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.mydatamyconsent.com";
            var apiInstance = new DataProviderDiscoveryApi(config);
            var providerId = "providerId_example";  // string | Data provider id.

            try
            {
                // Get a Data Provider details by provider id.
                DataProvider result = apiInstance.GetDataProviderById(providerId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling DataProviderDiscoveryApi.GetDataProviderById: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}
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
providerId string 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]

# GetDataProviders

DataProviderPaginatedList GetDataProviders (string? accountType = null, string? documentType = null, string? organizationCategory = null, int? pageNo = null, int? pageSize = null, string? countryIso2Code = null)

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

# Example

using System.Collections.Generic;
using System.Diagnostics;
using MyDataMyConsent.Api;
using MyDataMyConsent.Client;
using MyDataMyConsent.Models;

namespace Example
{
    public class GetDataProvidersExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.mydatamyconsent.com";
            var apiInstance = new DataProviderDiscoveryApi(config);
            var accountType = "accountType_example";  // string? | Account type. (optional) 
            var documentType = "documentType_example";  // string? | Document type. (optional) 
            var organizationCategory = "organizationCategory_example";  // string? | Organization category. (optional) 
            var pageNo = 1;  // int? | Page number. (optional)  (default to 1)
            var pageSize = 25;  // int? | Number of items to return. (optional)  (default to 25)
            var countryIso2Code = "\"IN\"";  // string? | ISO2 Country code. (optional)  (default to "IN")

            try
            {
                // Discover all data providers in My Data My Consent by country and filters.
                DataProviderPaginatedList result = apiInstance.GetDataProviders(accountType, documentType, organizationCategory, pageNo, pageSize, countryIso2Code);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling DataProviderDiscoveryApi.GetDataProviders: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}
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
33
34
35
36
37

# Parameters

Name Type Description Notes
accountType string? Account type. [optional]
documentType string? Document type. [optional]
organizationCategory string? Organization category. [optional]
pageNo int? Page number. [optional] [default to 1]
pageSize int? Number of items to return. [optional] [default to 25]
countryIso2Code string? ISO2 Country code. [optional] [default to "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