The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WWW::VieDeMerde - A perl module for using the viedemerde.fr API

VERSION

Version 0.01

SYNOPSIS

use WWW::VieDeMerde;

my $toto = WWW::VieDeMerde->new();
my $tata = $toto->last();
my $tata = $toto->page(17);
my $tata = $toto->random();

print $tata->texte, $tata->auteur;

DESCRIPTION

viedemerde.fr is a french microblog where people post short messages in order to show how their life is crappy. It comes with a simple but efficient http-based API. Since the webiste is only in french, this module will probably be useful only for french speaker Perl programmers and the most of this documentation will be written in french.

Ce module essaye de fournir une interface complète pour l'API 1.2, telle que documentée ici http://www.viedemerde.fr/api/documentation.

METHODS

new

Cette fonction crée un nouvel objet WWW::VieDeMerde utilisable pour dialoguer avec le serveur.

Les paramètres sont :

page

$vdm->page() renvoie la liste des 15 dernières entrées.

$vdm->page($n) la page $n (0 étant la plus récente).

Renvoie la liste vide si la page demandée est vide.

last

$vdm->last() est un alias pour $vdm->page(0)

INTERNAL METHODS AND FUNCTIONS

Rien de de tout ceci n'est destiné aux utilisateurs !

run

parse

errors

AUTHOR

Olivier Schwander, <olivier.schwander at ens-lyon.org>

BUGS

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

SUPPORT

A darcs repository is available here :

http://chadok.info/darcs/WWW-VieDeMerde

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

perldoc WWW::VieDeMerde

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2008 Olivier Schwander, all rights reserved.

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

1 POD Error

The following errors were encountered while parsing the POD:

Around line 45:

Non-ASCII character seen before =encoding in 'complète'. Assuming UTF-8