From: ivan Date: Sat, 26 Jun 2010 20:54:40 +0000 (+0000) Subject: adding more REST-like API for maestro here too X-Git-Tag: root_of_svc_elec_features~116 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=0d3dee3cf6dc3518fb21d1014f5ebb5ea7f95434;p=freeside.git adding more REST-like API for maestro here too --- diff --git a/httemplate/misc/maestro-customer_status.cgi b/httemplate/misc/maestro-customer_status.cgi new file mode 100644 index 000000000..abd0fb48f --- /dev/null +++ b/httemplate/misc/maestro-customer_status.cgi @@ -0,0 +1,16 @@ +<% $uri->query %> +<%init> + +my $uri = new URI; + +my($query) = $cgi->keywords; +if ( $query =~ /^(\d+)$/ ) { + + use FS::Maestro; + $uri->query_form( FS::Maestro::customer_status($1) ); + +} else { + $uri->query_form( { 'error' => 'No custnum' } ); +} + + diff --git a/httemplate/misc/maestro-customer_status.html b/httemplate/misc/maestro-customer_status.html new file mode 100644 index 000000000..0c45bcd4b --- /dev/null +++ b/httemplate/misc/maestro-customer_status.html @@ -0,0 +1,16 @@ +<% objToJson( $return ) %> +<%init> + +my $return; + +my($query) = $cgi->keywords; +if ( $query =~ /^(\d+)$/ ) { + + use FS::Maestro; + $return = FS::Maestro::customer_status($1); + +} else { + $return = { 'error' => 'No custnum' }; +} + +