1 package FS::part_export::acct_http;
3 use vars qw( @ISA %info );
4 use FS::part_export::http;
7 @ISA = qw( FS::part_export::http );
9 tie %options, 'Tie::IxHash',
10 'method' => { label =>'Method',
12 #options =>[qw(POST GET)],
15 'url' => { label => 'URL', default => 'http://', },
17 label => 'Insert data',
21 "username \$svc_x->username",
22 "password \$svc_x->_password",
23 "prismid \$cust_main->agent_custid ? \$cust_main->agent_custid : \$cust_main->custnum ",
24 "name \$cust_main->first.' '.\$cust_main->last",
28 label => 'Delete data',
32 "username \$svc_x->username",
36 label => 'Replace data',
40 "username \$old->username",
41 "password \$new->_password",
45 label => 'Success Regexp',
52 'desc' => 'Send an HTTP or HTTPS GET or POST request, for accounts.',
53 'options' => \%options,
55 Send an HTTP or HTTPS GET or POST to the specified URL on account addition,
56 modification and deletion. For HTTPS support,
57 <a href="http://search.cpan.org/dist/Crypt-SSLeay">Crypt::SSLeay</a>
58 or <a href="http://search.cpan.org/dist/IO-Socket-SSL">IO::Socket::SSL</a>