☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
6.6K
All Categories
1
Go client
357
.Net API client
183
Kite Publisher
399
.Net / VBA / Excel (3rd party)
199
Algorithms and Strategies
524
Java client
477
API clients
256
PHP client
1.5K
Python client
207
Mobile and Desktop apps
731
Market data (WebSockets)
1.8K
General
In this Discussion
August 26
sujith
August 26
ZI4453
headers
ZI4453
August 26
in
Python client
please make changes whereever i am mistaken
headers = {'Content-type': 'application/json'}
Login_kite_session='
https://api.kite.trade/session/token'
data={"api_key":'123458',"request_token":'yyy986',"checksum":'zzz'}
response=requests.post(Login_kite_session,data=data,headers=headers)
print(response.text)
header_authorisation={'Content-type': 'application/json','Authorization': 'token xxx:yyy'}
check_profile='
https://api.kite.trade/user/profile'
data={"api_key":'123458',"request_token":'yyy986',"checksum":'zzz'}
response_1=requests.post(Login_kite_session,data=data,headers=header_authorisation)
print(response_1.text)
Tagged:
python client request_token login connect
ZI4453
August 26
Updated session request-
headers = {'Content-type': 'application/json','Version':'X-Kite-version: 3'}
Login_kite_session='
https://api.kite.trade/session/token'
data={"api_key":'123458',"request_token":'yyy986',"checksum":'zzz'}
response=requests.post(Login_kite_session,data=data,headers=headers)
print(response.text)
sujith
August 26
You can take a look at this
here
.
ZI4453
August 26
i got above infor from there only..please confirm if placed headers properly.....rest i should be able to take care
@sujith
Sign In
or
Register
to comment.
headers = {'Content-type': 'application/json','Version':'X-Kite-version: 3'}
Login_kite_session='https://api.kite.trade/session/token'
data={"api_key":'123458',"request_token":'yyy986',"checksum":'zzz'}
response=requests.post(Login_kite_session,data=data,headers=headers)
print(response.text)
@sujith