# 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
open class func getDataProviderById(providerId: String, completion: @escaping (_ data: DataProvider?, _ error: Error?) -> Void)
1
Get a Data Provider details by provider id.
# Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import MyDataMyConsent
let providerId = "providerId_example" // String | Data provider id.
// Get a Data Provider details by provider id.
DataProviderDiscoveryAPI.getDataProviderById(providerId: providerId) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
providerId | String | Data provider id. |
# 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
open class func getDataProviders(accountType: String? = nil, documentType: String? = nil, organizationCategory: String? = nil, pageNo: Int? = nil, pageSize: Int? = nil, countryIso2Code: String? = nil, completion: @escaping (_ data: DataProviderPaginatedList?, _ error: Error?) -> Void)
1
Discover all data providers in My Data My Consent by country and filters.
# Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import MyDataMyConsent
let accountType = "accountType_example" // String | Account type. (optional)
let documentType = "documentType_example" // String | Document type. (optional)
let organizationCategory = "organizationCategory_example" // String | Organization category. (optional)
let pageNo = 987 // Int | Page number. (optional) (default to 1)
let pageSize = 987 // Int | Number of items to return. (optional) (default to 25)
let countryIso2Code = "countryIso2Code_example" // String | ISO2 Country code. (optional) (default to "IN")
// Discover all data providers in My Data My Consent by country and filters.
DataProviderDiscoveryAPI.getDataProviders(accountType: accountType, documentType: documentType, organizationCategory: organizationCategory, pageNo: pageNo, pageSize: pageSize, countryIso2Code: countryIso2Code) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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
# 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]