NAME
Net::Social::Mapper - utilities for dealing with internet persona
SYNOPSIS
my
$mapper
= Net::Social::Mapper->new;
my
$persona
=
$mapper
->persona(
'daveman692'
,
'livejournal'
);
$persona
->user;
# daveman692
$persona
->service;
# livejournal
$persona
->domain;
# livejournal.com
$persona
->name;
# LiveJournal
# Print out any feeds available (if any exist)
"Feeds : "
.
join
(
", "
,
@feeds
);
# What type are the feed items
"Feeds contain : "
.
join
(
", "
,
$persona
->types);
# These other options may or may not be available
"Home page : "
.
$persona
->homepage;
"Profile url : "
.
$persona
->profile;
"Full Name : "
.
$persona
->full_name;
"Service id : "
.
$persona
->id;
"Photo url : "
.
$persona
->photo;
"FOAF url : "
.
$persona
->foaf;
# If you have network access then you can query
# who they are elsewhere on the web
my
@personas
=
$persona
->elsewhere;
# Other examples ...
my
$persona
=
$mapper
->persona(
'daveman692'
,
'flickr'
);
$persona
->user;
# daveman692
$persona
->id;
# 36381329@N00
$persona
->service;
# website
$persona
->domain;
# davidrecordon.com
my
$persona
=
$mapper
->persona(
'test@example.com'
);
$persona
->user;
# test@example.com
$persona
->service;
$persona
->id;
# test
$person
->domain;
# example.com
# Moreover Net::Social::Mapper tries to work out the service from the url so that ...
# ... all return
$persona
->user;
# daveman692
$persona
->service;
# livejournal
$persona
->domain;
# livejournal.com
$persona
->name;
# LiveJournal
METHODS
new
Get a new Net::Social::Mapper
object.
persona <user> [service]
Return a Net::Social::Mapper::Persona
object representing the user.
Returns undef if it doesn't know anything about the service.
sitemap
The Net::Social::Mapper::SiteMap
object containing everything we know about various services.
classmap [key value]
Return a hash of (lowercase) service names to classes;
Alternatively if you pass in a key, value pair then that will be added to the map.
Passing in undef
as the value will delete the key.
get <url>
Get the contents of the url or undef on failure;
AUTHOR
Simon Wistow <swistow@sixapart.com>
COPYRIGHT
Copyright 2008, Six Apart Ltd.
Released under the same terms as Perl itself.