🔌 API

API login using python

👤 jamespennington
Q
Question
I have a simple script in python, jsut trying to connect using the API - it get the token but then always fails 'specified token is invalid or expired' Any one suggest whats wrong.. (x.co.uk is my vtiger install)

import requests, hashlib, json
from hashlib import md5
response = requests.get('https://x.co.uk/webservice.php?operation=getchallenge&username=admin')

print(response.json())
pr
A
Community Solution
✓ Answered
,
Are you sure that you sending right Access key for admin user?

For reference -

https://community.Vtiger CRM.com/help/vtigercrm/developers/third-party-app-integration.html
https://www.vtiger.com/docs/rest-api-for-vtiger

Also ,
Login to vtiger Database > vtiger_ws_userauthtoken
Check this table properly.

Regards,
Vivek Mahatma(10+ years of experience in this domain)
e: mahatma.vivek.com | skype: mahatma07vivek
<u>PLEASE STAY SAFE AND HEALTHY.</u>
[You may feel free to contact me if you need any further assistance. I never need either your crm access or your server access. If you can reproduce the same issue in my crm instance. I am more than happy to solve it and happy to share it in this forum. Or you may teamviewer with me to share specific issue. Or you may send me some screen shot/ video clicks to describe the issue .I will guide you how to solve the issue. ]
← Back to API Join to answer →