1BZ::Client(3) User Contributed Perl Documentation BZ::Client(3)
2
3
4
6 BZ::Client - A client for the Bugzilla web services API.
7
9 my $client = BZ::Client->new("url" => $url,
10 "user" => $user,
11 "password" => $password);
12 $client->login();
13
15 This section lists the class methods of BZ::Client.
16
18 my $client = BZ::Client->new("url" => $url,
19 "user" => $user,
20 "password" => $password);
21
22 The new method constructs a new instance of BZ::Client. Whenever you
23 want to connect to the Bugzilla server, you must first create a
24 Bugzilla client. The methods input is a hash of parameters.
25
26 url The Bugzilla servers URL, for example
27 "https://bugzilla.mozilla.org/".
28
29 user
30 The user name to use when logging in to the Bugzilla server.
31 Typically, this will be your email address.
32
33 password
34 The password to use when logging in to the Bugzilla server.
35
37 This section lists the methods, which an instance of BZ::Client can
38 perform.
39
40 url
41 my $url = $client->url();
42 $client->url($url);
43
44 Returns or sets the Bugzilla servers URL.
45
46 user
47 my $user = $client->user();
48 $client->user($user);
49
50 Returns or sets the user name to use when logging in to the Bugzilla
51 server. Typically, this will be your email address.
52
53 password
54 my $password = $client->password();
55 $client->password($password);
56
57 Returns or sets the password to use when logging in to the Bugzilla
58 server.
59
60 login
61 Used to login to the Bugzilla server. There is no need to call this
62 method explicitly: It is done automatically, whenever required.
63
64 api_call
65 my $response = $client->api_call($methodName, $params);
66
67 Used by subclasses of BZ::Client::API to invoke methods of the Bugzilla
68 API. Takes a method name and a hash ref of parameters as input. Returns
69 a hash ref of named result objects.
70
72 L<BZ::Client::Exception>
73
74
75
76perl v5.12.0 2010-02-03 BZ::Client(3)