Net::SocialGraph - interact with Google's Social Graph API
my $sg = Net::SocialGraph->new(%options); # see below my $res = $sg->get(@urls);
This is a paper thin wrapper round Google's Social Graph API.
http://code.google.com/apis/socialgraph/
You should read the docs there for more information about options and the format of the response.
Create a new Social Graph object.
Can optionally take, err, some options.
Return edges out from returned nodes.
Return edges in to returned nodes.
Follow me links, also returning reachable nodes.
Pretty-print returned JSON.
JSONP callback function.
You shouldn't ever have to use this but I put it in for completeness.
Return internal representation of nodes.
Fetch the information about the nodes specified in the uris.
Returns a nested data structure representing the results. This will be in the form of a hashref.
The key canonical_mapping contains another hashref which maps each uri given to its canonical form.
canonical_mapping
The key nodes contains a hashref with keys for each uri given. The contents of those hashrefs (do keep up) depend on the options given.
nodes
You can read more information about node uris here
http://code.google.com/apis/socialgraph/docs/api.html#query
The same as above but returns raw JSON.
Simon Wistow <simon@thegestalt.org>
Copyright 2008, Simon Wistow
Distributed under the same terms as Perl itself.
To install Net::SocialGraph, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::SocialGraph
CPAN shell
perl -MCPAN -e shell install Net::SocialGraph
For more information on module installation, please visit the detailed CPAN module installation guide.