# \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(ctx, providerId).Execute()
Get a Data Provider details by provider id.
# Example
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
providerId := "providerId_example" // string | Data provider id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DataProviderDiscoveryApi.GetDataProviderById(context.Background(), providerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataProviderDiscoveryApi.GetDataProviderById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDataProviderById`: DataProvider
fmt.Fprintf(os.Stdout, "Response from `DataProviderDiscoveryApi.GetDataProviderById`: %v\n", resp)
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
providerId | string | Data provider id. |
# Other Parameters
Other parameters are passed through a pointer to a apiGetDataProviderByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
# Return type
# 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
DataProviderPaginatedList GetDataProviders(ctx).AccountType(accountType).DocumentType(documentType).OrganizationCategory(organizationCategory).PageNo(pageNo).PageSize(pageSize).CountryIso2Code(countryIso2Code).Execute()
Discover all data providers in My Data My Consent by country and filters.
# Example
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
accountType := "accountType_example" // string | Account type. (optional)
documentType := "documentType_example" // string | Document type. (optional)
organizationCategory := "organizationCategory_example" // string | Organization category. (optional)
pageNo := int32(56) // int32 | Page number. (optional) (default to 1)
pageSize := int32(56) // int32 | Number of items to return. (optional) (default to 25)
countryIso2Code := "countryIso2Code_example" // string | ISO2 Country code. (optional) (default to "IN")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DataProviderDiscoveryApi.GetDataProviders(context.Background()).AccountType(accountType).DocumentType(documentType).OrganizationCategory(organizationCategory).PageNo(pageNo).PageSize(pageSize).CountryIso2Code(countryIso2Code).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DataProviderDiscoveryApi.GetDataProviders``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDataProviders`: DataProviderPaginatedList
fmt.Fprintf(os.Stdout, "Response from `DataProviderDiscoveryApi.GetDataProviders`: %v\n", resp)
}
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
# Path Parameters
# Other Parameters
Other parameters are passed through a pointer to a apiGetDataProvidersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
accountType | string | Account type. | |
documentType | string | Document type. | |
organizationCategory | string | Organization category. | |
pageNo | int32 | Page number. | [default to 1] |
pageSize | int32 | Number of items to return. | [default to 25] |
countryIso2Code | string | ISO2 Country code. | [default to "IN"] |
# Return type
# 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]