vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBulletin SOAP API (https://vborg.vbsupport.ru/showthread.php?t=100559)

leonsio 11-09-2005 10:00 PM

vBulletin SOAP API
 
sorry for my bad english ;)


Changes:

v. 1.0.7
Bugfix in the updateUser function
added getOnlineUsers() function, to get the list of the logged in users

v. 1.0.6
updateUser uand deleteUser updated, now is posible to call it with userid or other field from user table
getStats() funktion added, to get forum stats


v. 1.0.5
Added updateUser, deleteUser to update user data ( email/password, username )
or delete user

v. 1.0.4
Added doActivateSession function to let vbulletin accept sessionid

v. 1.0.3
functions to get userdata and postdata are now done
postmessage returns as formated html

v. 1.0.2
added support for vbulletin "session"
the server can now send all needed cookies, to the client, last 2 optional:
(PREFIXsessionhash/lastvisit/lastactivity/(userid/password))

v. 1.0.1
rename login funtion to doLogin
add placeholder for getUser/setUser, getPost/setPost, getThread/setThread functions
change URL in the WSDL file to relative URL




this is a beta version !!

what this hack do:

this hack provide a soap api to access vbulletin functions over internet
( for example: ebay, amazon or google have they webservices api to access is over soap )

this hack has at the moment this functions

1. login to vbulletin
you must give username and password, as response you get userid and password as md5 ( with salt ) hash

so that you can set vbulletin cookie on your application

2.
a. last X post from the forum
b. last X post from the forum, which the user ( which is loged in, see 1. ) can see

3. manipulate a user, get user information , create users or delete then

4.
get forum statistics from vbulletin ( Sponsored by 1Agency (www.1agency.de) )
you will get new user, max threads/posts and some other stuff as result

5.
get all logged in users in vbulletin


what can you do with this hack ?

you can make common login with your application ( written in PHP/ASP(.NET)/JAVA/C or any language which supports SOAP calls ( for example mozilla firefox ^^)).
to make common login, you must set vbulletin cookie, see 1.

or you can write firefox extension to get last 10 thread from your forum, with threads that you can see

or synchronise users from your application and vbulletin ( this feauture is on development )

other planced feautures are:
write comment
write thread
get thread ( with all comments )


whis SOAP-SERVER is written in PHP5 with SOAP - extension
so that you need to be php5 and soap extension installed on your server
( all new destributions provides php5 and soap extensions as rpm packages )

it is posible to write this server in php4 oder php5 without soap extension ( with nuSOAP or PEAR::SOAP ) but this is not planed at the time, sorry
php
Clients can be written in Java, ASP or PHP, with all language which supports soap
so that you can make common login between an ASP or JSP CMS and Vbulletin


how to install

unpack the package, move the "soap" folder in your forum root
and install the product with product installer

to test the functionality i have included some test files in /soap/examples

you must change the url and username/password and the key in this files


later i will make some examples for typo3/joomla/xoops to access and login into vbulletin

i will accept every help and feedback to make this extension better :D

updated example is in the "soap" folder

SHANE-D-PAIN 11-10-2005 08:52 PM

First post for no apparent reason but this sounds good.

rb290 11-10-2005 10:47 PM

confused lol

can someone sum it up in a little paragraph and tell me what this is

Daniel 11-11-2005 12:23 AM

Soap on the computer? sweet

tnguy3n 11-11-2005 12:35 AM

I think SOAP must be abreviation of something, but I got no idea what it is. :p

mcncyo 11-11-2005 01:01 AM

SOAP= Simple Object Access Protocol. It was design to easy interface with the data.

You don't have to call mysql database, call the correct table all you have to do is call the program and it will do the rest. You can make an application to connect to it easy.

Reeve of shinra 11-11-2005 01:13 AM

This has a lot of potential. Off the top of my head, I can see htis being used for folks that want to have 1 user table across different sites.

Cap'n Steve 11-11-2005 04:07 AM

Nice idea.

/me gets the first install.

leonsio 11-11-2005 07:44 AM

little example to access VB_SOAP(login into vbulletin) with PEAR-SOAP class

( works in php4 and php5 )

PHP Code:

<?php

        
include_once('SOAP/Client.php');

        
$test= new SOAP_Client('http://www.c4u.to/forum/soap/server.php?wsdl');

        
$params=array(  'key'           =>      'test',
                       
'password'      =>      'tester',
                       
'username'      =>      'tester'
                                
);

        
$result=$test->call('doLogin'$params);

        
print_r($result);

?>

update to version 1.0.1

leonsio 11-11-2005 12:33 PM

next version will come with vbulletin cookie support an without phpsession support

so what you can get all needed cookies directly from the vbulletin server ( userid and password as cookie data too )

this feauture can be activated in the admincp

attention, if you will to transfer cookie of userid and password, you should use an ssl connection !!!

this version will come out on monday

and it will include an example to connect the server with cookie support

after first connect ( or login ) you will get an vbulletin-session cookie from the server ( as array )
you can put this cookie in the user session at your application, by next request you can send this cookie with the request

this cookie let you be logged in, at vbulletin
( it create an vbulletin session, if the user login over doLogin function, the user will be displayer on the online.php as logged in on forum )


All times are GMT. The time now is 04:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01320 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete