# mydatamyconsent.DigiLockerCompatIssuerApi
All URIs are relative to https://api.mydatamyconsent.com
Method | HTTP request | Description |
---|---|---|
digilocker_compat_issue_document | POST /issuer/issuedoc/1/xml | Digilocker Compatible endpoint to issue document. |
# digilocker_compat_issue_document
PushUriResponse digilocker_compat_issue_document(push_uri_request)
Digilocker Compatible endpoint to issue document.
# Example
import time
import mydatamyconsent
from mydatamyconsent.api import digi_locker_compat_issuer_api
from mydatamyconsent.model.push_uri_request import PushUriRequest
from mydatamyconsent.model.problem_details import ProblemDetails
from mydatamyconsent.model.error import Error
from mydatamyconsent.model.push_uri_response import PushUriResponse
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 = digi_locker_compat_issuer_api.DigiLockerCompatIssuerApi(api_client)
push_uri_request = PushUriRequest(
uri_details=UriDetails(
aadhaar="aadhaar_example",
uri="uri_example",
doc_type="doc_type_example",
doc_name="doc_name_example",
doc_id="doc_id_example",
issued_on="issued_on_example",
valid_from="valid_from_example",
valid_to="valid_to_example",
timestamp="timestamp_example",
action="action_example",
),
ns2="ns2_example",
ver="ver_example",
ts="ts_example",
txn="txn_example",
org_id="org_id_example",
keyhash="keyhash_example",
) # PushUriRequest | Push URI request payload
# example passing only required values which don't have defaults set
try:
# Digilocker Compatible endpoint to issue document.
api_response = api_instance.digilocker_compat_issue_document(push_uri_request)
pprint(api_response)
except mydatamyconsent.ApiException as e:
print("Exception when calling DigiLockerCompatIssuerApi->digilocker_compat_issue_document: %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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
38
39
40
41
42
43
44
45
46
47
# Parameters
Name | Type | Description | Notes |
---|---|---|---|
push_uri_request | PushUriRequest | Push URI request payload |
# Return type
# Authorization
No authorization required
# HTTP request headers
- Content-Type: application/xml
- Accept: application/xml
# HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
401 | Unauthorized | - |
500 | Server Error | - |
404 | Not Found | - |
0 | Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]