I am using the following code to authenticate the API.
import webbrowser
from urllib.parse import quote,quote_plus
url = f"https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id={apiKey}&redirect_uri={quote_plus(redirectUri)}"
response = requests.request("GET", url)
webbrowser.open(response.url)
But I am getting the following error:
{
"status": "error",
"errors": [
{
"errorCode": "UDAPI100016",
"message": "Invalid Credentials",
"propertyPath": null,
"invalidValue": null,
"error_code": "UDAPI100016",
"property_path": null,
"invalid_value": null
}
]
}
Redirect URI: http://127.0.0.1:8989/redirect/
I have verified that all the credentials are properly in place. Please helpā¦