aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fetch-comments
blob: 4eb9def14499f0ce1f357bd545988456c09fb2d5 (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
26
27
28
#!/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 FixMyStreet::App;
use CronFns;
my ($verbose, $nomail) = CronFns::options();

use Open311;
use Open311::GetServiceRequestUpdates;


my $updates = Open311::GetServiceRequestUpdates->new( verbose => $verbose );

$updates->fetch;