View Full Version : How to use vBulletin 5 API - Log in and add member
hasan1aj
07-11-2016, 08:53 AM
the official documentation http://vb5support.com/resources/api/index.html is not clear. I want to do something like an auto login for the forum. An already logged in user to main website can automatically log in to my forum without registration. My website is in .net. Can some1 help? How to use the API? Mainly i only need the login and add member function from the API.
noypiscripter
07-11-2016, 06:30 PM
Here's a tutorial on how to login to vB5 from an external site.
http://www.vbulletin.com/forum/blogs/david-grove/4327147-how-to-log-into-vbulletin-from-an-external-script-on-your-website
hasan1aj
07-12-2016, 04:48 AM
but my website is in c#..isnt there a another tutorial?
Replicant
07-12-2016, 12:26 PM
You can login to the admincp using libcurl and call the user api from your code. You'll have to use the dev tools in the browser while in the admincp to see the required parameters for user.php to setup your curl commands in your code. You'll also have to setup curl to store and use the cookies sent on login to the admincp.
I've used this method to setup multiple users, categories, and forums from a php script using a csv file for input. It's probably not the most efficient or the best way, but I know it works. I've not used C or C# to do it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.