WWW::KrispyKreme::Hotlight - first release
I have uploaded the first version of WWW::KrispyKreme::Hotlight. This is basically a Perl wrapper that interfaces with Krispy Kreme's location search page
Creating a new object like this:
# only supports geo right now
my $donuts =
WWW::KrispyKreme::Hotlight->new(where => [34.170833,-118.25]);
and calling the locations method like this:
my $locations = $donuts->locations;
will return a structure like this:
[ { 'storeHours2' => '',
'locationId' => '993',
'hotLightOn' => '0',
'storeHours1' => '',
'phone' => '818-955-9015',
'zipcode' => '91504',
'state' => 'CA',
'city' => 'Burbank',
'geoLocation' => '34.190000,-118.330000',
'url' => 'http://kkre.me/oXMuQQ',
'title' => 'Burbank',
'address' => '1521 North Victory Place'
},
{ 'storeHours2' => '',
'locationId' => '985',
'hotLightOn' => '0',
'storeHours1' => '',
'phone' => '323-291-4133',
'zipcode' => '90008',
'state' => 'CA',
'city' => 'Los Angeles',
'geoLocation' => '34.010000,-118.340000',
'url' => 'http://kkre.me/pF3cuI',
'title' => 'Los Angeles',
'address' => '4034 Crenshaw Boulevard'
},
...
]
Notice there is a boolean value for 'hotLightOn' which can be handy for finding fresh donuts!
CPAN: https://metacpan.org/module/WWW::KrispyKreme::Hotlight
Github: https://github.com/aggrolite/WWW-KrispyKreme-HotLight