API access for publisher

muke5hy
Hi,
I have created and Publisher APP and when I try to run example code I get below error.

from kiteconnect import KiteConnect
kite = KiteConnect(api_key="MY_API_KEY")
print kite.login_url()
try:
user = kite.request_access_token(request_token="MY_request_token",
secret="MY_secret")

kite.set_access_token(user["access_token"])
except Exception as e:
print("Authentication failed", str(e))
raise

print(user["user_id"], "has logged in")



('Authentication failed', 'That API call is not allowed for the authenticated user')
  • Kailash
    @muke5hy Kite Publisher is only for embedding trade buttons and rendering baskets. You need Kite Connect to use the APIs.
Sign In or Register to comment.