For REST API in Python for Mac, unable to get a response for request token.
I have tried both POST and GET methods.
Error shown is:
,"message":"Resource not found for the segment 'RequestToken HTTP'."}}
Below is the code:
import requests
URL="https://selectapi.datascope.refinitiv.com/RestApi/v1/Authentication/RequestToken HTTP/1.1"
headers={'Prefer': 'respond-async','Content-Type': 'application/json'}
params = {'Username': 'Added_Username', 'Password': 'Added_password'}
response=requests.get(URL, params=params,headers=headers).text