/[notice-sender]/trunk/soap.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/soap.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 33 by dpavlin, Tue May 17 11:09:08 2005 UTC revision 34 by dpavlin, Tue May 17 15:03:57 2005 UTC
# Line 26  package Nos::SOAP; Line 26  package Nos::SOAP;
26    
27  This methods are thin wrappers to provide SOAP calls.  This methods are thin wrappers to provide SOAP calls.
28    
29    Usually, you want to used named variables in your SOAP calls if at all
30    possible. However, if you have broken SOAP libraries (like PHP's PEAR SOAP)
31    you will want to use positional arguments (in same order as documented for
32    methods below).
33    
34  =head2 NewList  =head2 NewList
35    
36   $message_id = NewList(   $message_id = NewList(
# Line 38  This methods are thin wrappers to provid Line 43  This methods are thin wrappers to provid
43  sub NewList {  sub NewList {
44          my $self = shift;          my $self = shift;
45    
46          return $nos->new_list( %{ shift @_ } );          if ($_[0] !~ m/^HASH/) {
47                    return $nos->new_list(
48                            list => $_[0], email => $_[1],
49                    );
50            } else {
51                    return $nos->new_list( %{ shift @_ } );
52            }
53  }  }
54    
55  =head2 AddMemberToList  =head2 AddMemberToList
# Line 54  sub NewList { Line 65  sub NewList {
65  sub AddMemberToList {  sub AddMemberToList {
66          my $self = shift;          my $self = shift;
67    
68          return $nos->add_member_to_list( %{ shift @_ } );          if ($_[0] !~ m/^HASH/) {
69                    return $nos->add_member_to_list(
70                            list => $_[0], email => $_[1], name => $_[2],
71                    );
72            } else {
73                    return $nos->add_member_to_list( %{ shift @_ } );
74            }
75  }  }
76    
77  =head2 AddMessageToList  =head2 AddMessageToList
# Line 69  sub AddMemberToList { Line 86  sub AddMemberToList {
86  sub AddMessageToList {  sub AddMessageToList {
87          my $self = shift;          my $self = shift;
88    
89          return $nos->add_message_to_list( %{ shift @_ } );          if ($_[0] !~ m/^HASH/) {
90                    return $nos->add_message_to_list(
91                            list => $_[0], message => $_[1],
92                    );
93            } else {
94                    return $nos->add_message_to_list( %{ shift @_ } );
95            }
96  }  }
97    

Legend:
Removed from v.33  
changed lines
  Added in v.34

  ViewVC Help
Powered by ViewVC 1.1.26