Hello,
We've been trying to use the vBulletin API and have spent hours attempting to successfully keep a user logged in to no avail This is very frustrating because the documentation on and vBulletin support regarding the API is very limited.
We have managed to successfully login users via the API and receive (for example) the following information back:
Code:
[session] => Array
(
[dbsessionhash] => 9e0df97bb21240fc014418ede5e6c1bd
[userid] => 1
So we are able to successfully login a user. However, we do not know and have not been able to figure out how to KEEP the user logged in for each subsequent API call / request for that user.
Specifically, we are referring to this (very vague) part of the vBulletin API documentation help (found here:
https://www.vbulletin.com/forum/cont...s-Mobile-API):
Quote:
"So after this API call (login_login), client should call api_init (get new session as well as new common $show variables) or api_getsecuritytoken to get the new securitytoken. Once the client gains both the new sessionhash and the securitytoken, please save them in application session vars. After this the login process is done. You need to pass the new sessionhash to the API and use the new securitytoken to sign the requests in future API method calls."
|
Could anyone please be kind enough to dissect this paragraph for us and explain it in step-by-step detail so we can get this to work properly?
We are completely stuck at this point and it's so frustrating because we've gotten everything else to work perfectly with the API.
Please let us know and thank you so much! We really appreciate it!