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

what to do after getting the token from otp auth ? #516

Open rum3r opened 3 years ago

rum3r commented 3 years ago

I am trying to use the appointment availability api..

  1. generate OTP using https://cdn-api.co-vin.in/api/v2/auth/public/generateOTP.
  2. Converting the OTP received on mobile to SHA 256 format.
  3. Passing the SHA256 format of OTP and txnId to API https://cdn-api.co-vin.in/api/v2/auth/public/confirmOTP.
  4. I have done till here, now we get json object containing a token as a string. And what is the bearer authorize on the top??
big89 commented 3 years ago

You could use this token as Authorization: Bearer xxxxxxxxxxxxxxxxxxxx header in API to download vaccination certificate in PDF format by beneficiary reference id.

Thanks, Logicmaker

keshavbidawatka commented 3 years ago

I'm not able to fetch beneficiary reference id after this. What to do?

ghost commented 2 years ago

i got token after otp confirmation. now how to get data using token and what can i do with token?