Request access token is not a attribute of KiteConnect

Prasanth_Chinni
Prasanth_Chinni edited October 2018 in General
Im getting the below error while trying to assign my request access token.
AttributeError: 'KiteConnect' object has no attribute 'request_access_token'

This is the code written:
In [10]: from kiteconnect import KiteConnect

In [11]: api_key="XXX"

In [12]: api_secret="XXX"

In [13]: kite=KiteConnect(api_key,api_secret)

In [14]: kite.login_url()
Out[14]: 'https://kite.trade/connect/login?api_key=XXX'

In [15]: kite.request_access_token("XXX",api_secret)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in
----> 1 kite.request_access_token("XXX",api_secret)

AttributeError: 'KiteConnect' object has no attribute 'request_access_token'
This discussion has been closed.