-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Key Not Working #465
Comments
Try same with any REST API client like Postman OR in any programming language like PHP. Also, this APIs are only accessible from Indian IPs. Thanks, |
for trying with postman or from programming language |
@rupesh-jaiswal Co-Win API portal already given Swagger documentation which can generate cURL request for each API. For refrence you can check below PHP script for Generate OTP Protected API with given Sandbox API Key - `<?php curl_setopt($ch, CURLOPT_URL, 'https://cdndemo-api.co-vin.in/api/v2/auth/generateOTP'); $headers = array(); $result = curl_exec($ch); echo $result; Similarly check for other APIs on API portal as no any other reference provided except that. Thanks, |
@ChetanKhanapure Password mush be SHA256 hashed in Confirm OTP API call. Refer below link for reference - Thanks, |
Thanks for update, after convert OPT into sha256 its works in postman.
Now I am consuming APIS in Microsoft Power Automate with "/generateOTP" endpoint, still getting 403 error.
Please see the screenshot below:
![image](https://user-images.githubusercontent.com/63814178/123655537-b0304680-d84c-11eb-9a88-7fa36f560a67.png)
…________________________________
From: Bhagwan Sahane ***@***.***>
Sent: Monday, June 28, 2021 7:10 PM
To: cowinapi/developer.cowin ***@***.***>
Cc: Chetan Harish Khanapure ***@***.***>; Mention ***@***.***>
Subject: Re: [cowinapi/developer.cowin] API Key Not Working (#465)
@ChetanKhanapure<https://github.com/ChetanKhanapure> Password mush be SHA256 hashed in Confirm OTP API call.
Refer below link for reference -
https://emn178.github.io/online-tools/sha256.html
Thanks,
Logicmaker
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#465 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APG3UIVQFLBWTF6ODHX23T3TVB3TTANCNFSM47JNWZVA>.
|
Make sure that you are calling this APIs from Indian IPs only. |
We have tried the demo Cowin API on the website but encountered the following error:
'Failed to Fetch'
Steps to recreate:
The text was updated successfully, but these errors were encountered: