GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  WWW::MYSPACE::FRIENDCHANGES (3)

.ds Aq ’

NAME

WWW::Myspace::FriendChanges - Track additions/deletions to your friends list

CONTENTS

VERSION

Version 0.04

SYNOPSIS

Returns a list of friends that have been added or deleted since the last run.



        use WWW::Myspace;
    use WWW::Myspace::FriendChanges;

        my $myspace = new WWW::Myspace;

    my $foo = WWW::Myspace::FriendChanges->new( $myspace );

        OR
       
        my $foo = WWW::Myspace::FriendChanges->new( $myspace, $cache_file )

        # Get the list of deleted friends.
        @deleted_friends = $foo->deleted_friends;
       
        # Get the list of new friends
        @added_friends = $foo->added_friends;
       
        # Write the current friend list into the cache file.
        $foo->write_cache;



METHODS

    new

The new method requires 1 argument (a WWW::Myspace object), and takes an optional second argument, a filename for the cache file. The cache file defaults to friendcache in the WWW::Myspace cache_dir. You can set it using the new method or using the cache_file method.

    set_cache_file( filename )

Sets the cache file. You should use cache_file instead. This method is only for backwards compatibility.

    cache_file

Sets or returns the current cache filename.



        my $cache_file = $friend_changes->cache_file;

        print $cache_file;



filename is used as the file from/to which we read/write the list of friends. Setting the cache filename also clears the internal last_friends list.

    write_cache

Writes out the current list of friends to the cache file.

    deleted_friends

Returns a list of the IDs of friends that have disappeared since the last cache list was saved. The first time it’s called it searches the friends lists and caches the list of deleted friends within the object data.



        Usage:
       
        use WWW::Myspace;
        use WWW::Myspace::FriendChanges;
       
        my $myspace = new WWW::Myspace;
        my $friend_changes = new FriendChanges( $myspace );

        my @deleted_friends = $friend_changes->deleted_friends;



    added_friends

Returns a list of the IDs of friends that have been added since the last cache list was saved.

AUTHOR

Grant Grueninger, <grant at cscorp.com>

BUGS

Please report any bugs or feature requests to bug-www-myspace at rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Myspace>. I will be notified, and then you’ll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.



    perldoc WWW::Myspace::FriendChanges



You can also look for information at:
o AnnoCPAN: Annotated CPAN documentation

<http://annocpan.org/dist/WWW-Myspace>

o CPAN Ratings

<http://cpanratings.perl.org/d/WWW-Myspace>

o RT: CPAN’s request tracker

<http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Myspace>

o Search CPAN

<http://search.cpan.org/dist/WWW-Myspace>

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2005 Grant Grueninger, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 WWW::MYSPACE::FRIENDCHANGES (3) 2008-06-19

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.