-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
24 lines (19 loc) · 986 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import abha
from pprint import pprint
# Defining the host is optional and defaults to https://healthidsbx.abdm.gov.in/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = abha.Configuration(host="https://healthidsbx.abdm.gov.in/api/v1")
# Configure Bearer authorization (JWT): bearerAuth
configuration = abha.Configuration(access_token="")
# Enter a context with an instance of the API client
with abha.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = abha.DefaultApi(api_client)
auth_aadhar_init_request = abha.AuthAadharInitRequest() # AuthAadharInitRequest |
try:
# auth-aadhar-init
api_response = api_instance.auth_aadhar_init(auth_aadhar_init_request)
print("The response of DefaultApi->auth_aadhar_init:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->auth_aadhar_init: %s\n" % e)