aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fetch-reports
blob: 20de10f4b1c13ea44ea87ff5b4e83b6857e33520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env perl
#
# This script utilises Open311 as described at
# http://wiki.open311.org/GeoReport_v2/#get-service-requests
# to fetch service requests.

use strict;
use warnings;
require 5.8.0;

BEGIN {
    use File::Basename qw(dirname);
    use File::Spec;
    my $d = dirname(File::Spec->rel2abs($0));
    require "$d/../setenv.pl";
}

use CronFns;
my ($verbose, $nomail) = CronFns::options();

use Open311::GetServiceRequests;

my $reports = Open311::GetServiceRequests->new( verbose => $verbose );

$reports->fetch;