aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fetch-reports
blob: 665b4aff09c7b441790e45f4aa4e557c8dc8e136 (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 the Open311 extension explained at
# https://github.com/mysociety/FixMyStreet/wiki/Open311-FMS---Proposed-differences-to-Open311
# to fetch updates on 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;