Open Paul-Manart opened 1 year ago
Sorry if this sounds too basic, but supposing you have created a client with a secret ID and key, something like this:
client = NordigenClient(
secret_id= id,
secret_key=key
)
have you generated a token for it, by calling
client.generate_token()
? I tried omitting the token generation in a simple example and I got a 401 response.
Not too sure if a bug or just incorrect usage of the API.
I have initialized a new session through the following code, clicked the link and authorized:
init = client.initialize_session(institution_id = "ING_INGBNL2A", redirect_uri = "https://nordigen.com", reference_id=str(uuid4())) print(init.link)
requisition_id = init.requisition_id print(requisition_id)
Then copied the requisition_id and pasted in the following code:
accounts = client.requisition.get_requisition_by_id(requisition_id = "PASTED HERE") print(json.dumps(accounts, indent = 2))
If I understand correctly, I have authorized properly, and should not be getting a 401 response.