Created
January 28, 2012 11:45
-
-
Save sbarrat/1694049 to your computer and use it in GitHub Desktop.
XMLRCP Client Bugzilla Login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* require PEAR/XML_RPC2 library | |
* Works fine with bugzilla 4.0.3 | |
*/ | |
require_once 'XML/RPC2/Client.php'; | |
$server = 'http://bugzilla.mydomain.com/xmlrpc.cgi'; | |
$params = array( 'login' => '[email protected]','password' =>'mypassword', 'remember' => 1); | |
$client = XML_RPC2_Client::create( $server ); | |
$userid = $client->__call( 'User.login' , $params ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment