Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 567 Bytes

File metadata and controls

22 lines (14 loc) · 567 Bytes

Digilocker Partner API Python Client

Wrapper over the requests library for communicating with the Digilocker Partner 1.6 API.

API Documentation: Digilocker 1.6 API

Usage

  • Digilocker Auth flow
from digilocker.api import Digilocker

api = Digilocker("client_id", "client_secret", "redirect_uri")

# To get authorization URL
api.get_authorization_url("99999999", "ref_number")

# To get Access token
api.get_access_token("code")