cowinapi / developer.cowin

This group is created to facilitate technical and integration discussions related to cowin platform. API related contents can be obtained at API setu portal https://apisetu.gov.in/public/marketplace/api/cowin
115 stars 30 forks source link

unable to download appointment slip #440

Closed suraj-deshmukh closed 3 years ago

suraj-deshmukh commented 3 years ago

i am trying to download appointment slip through python request module but i am getting below error msg

In [28]: pdf = session.get("https://cdn-api.co-vin.in/api/v2/appointment/appointmentslip/download?appointment_id=5c34fc4a-4f6f-480b-9f4c-6d03eebc7f00")
In [29]: print(pdf)                                                                                                                                                                                         
<Response [504]>
In [30]: pdf.json()                                                                                                                                                                                         
Out[30]: {'message': 'Endpoint request timed out'}

session used here is authenticated one. I am facing same issue from cowin portal as well.

slip

shababps commented 3 years ago

How you got the appointment id?

suraj-deshmukh commented 3 years ago

I booked the appointment today that's why I got appointment id

shababps commented 3 years ago

Where does it displays on dashboard? You hashed it right ?

shababps commented 3 years ago

Downloading appointment slip needs to use protected API. You have to get API key from them by register on the link provided above the API Development Page.

suraj-deshmukh commented 3 years ago

Where does it displays on dashboard? You hashed it right ?

You won't be able to see appointment id on dashboard unless you open browser in inspect mode. What i am trying to show here is even from portal it is getting timeout.

shababps commented 3 years ago

ok, I do notice that. I am also looking for a solution .

On Tue, 15 Jun 2021 at 10:02, Suraj Deshmukh @.***> wrote:

Where does it displays on dashboard? You hashed it right ?

You won't be able to see appointment id on dashboard unless you open browser in inspect mode. What i a trying to show here is even from portal it is getting timeout and from > python script as well.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cowinapi/developer.cowin/issues/440#issuecomment-861160926, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUNCT73KVFNLWLCNZE7GPZ3TS3JU5ANCNFSM46VSW52Q .

suraj-deshmukh commented 3 years ago

I guess issue is resolved now bcz I am able to download appointment slip.

Closing this issue