Skip to content

Commit

Permalink
first example added
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-Kumar-Code committed Apr 26, 2024
1 parent 5230334 commit 28941f4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/auth_aadhar_otp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import abha
from abha.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://abhasbx.abdm.gov.in/abha/api/v3
# See configuration.py for a list of all supported configuration parameters.
configuration = abha.Configuration(
host="https://abhasbx.abdm.gov.in/abha/api/v3"
)

# 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.ABHAEnrollmentApi(api_client)
request_id = 'request_id_example' # str
timestamp = 'timestamp_example' # str
body = 'body_example' # str | (optional)

try:
# AUTH - OF AADHAAR OTP FOR PARENT VERIFICATION
api_response = api_instance.api_v3_enrollment_auth_by_aadhaar_post(request_id, timestamp, body=body)
print("The response of ABHAEnrollmentApi->api_v3_enrollment_auth_by_aadhaar_post:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ABHAEnrollmentApi->api_v3_enrollment_auth_by_aadhaar_post: %s\n" % e)

0 comments on commit 28941f4

Please sign in to comment.