NET::WebJay - Perl extension for the WebJay API v0.0 (Draft June 2, 2004)
use NET::WebJay; blah blah blah
The WebJay module is currently at the stage where one can call the functions to get bypass most of the user agent setup, which was the point. The module has several methods to mirror the API's declaration:
If the URI of the playlist is not set, and there is a title in the GET arguments, create a playlist by that title and return the short-name.
title: text [MAX LENGTH 255] [REQUIRED]<br /> public: public OR private [default: public] [REQUIRED]<br /> description: text [MAX LENGTH 255] [OPTIONAL]<br /> m3u: Newline separated list of URLs of playlist entries [MAX LENGTH 40K] [OPTIONAL]<br />
201 on success<br /> 4xx on failure<br /> 5xx on failure<br />
POST to the API URL (for example: http://webjay.org/api/by/yourname/short-name) of the playlist that you want to change.<br />
shortname: Short-name of the playlist<br /> title: text [MAX LENGTH 255]<br /> public: public OR private [MAX LENGTH 255]<br /> description: text [MAX LENGTH 255]<br /> m3u: Newline-separated list of URLs of playlist entries [MAX LENGTH 40K]<br />
200 on success<br /> 4xx on failure<br /> 5xx on failure<br />
To delete a playlist, use the HTTP DELETE method on the playlist URI.<br /> Please be careful.<br /> You will not be prompted, and once a playlist is deleted it is not recoverable.<br />
shortname: Short-name of the playlist.
Get the actual content of a playlist.
A full playlist in XPSF.
Update metadata related to a playlist entry, using the URL of the entry as a key.<br /> <br /> Metadata for an audio URL applies to all instances of that URL within your playlists.<br /> If you do not set a value for the image, description, or site parameter, a blank value will be used.<br />
song: [URL of an audio resource in one of your playlists] [REQUIRED]<br /> description: text [MAX LENGTH 255] [REQUIRED]<br /> image: URL of a GIF [MAX LENGTH 255] [REQUIRED]<br /> site: URL related to audio resource [MAX LENGTH 255] [REQUIRED]<br />
Fetch a listing of user playlists.
An array of playlist short-names.
Given a playlist title, fetch the short-name.
title: entity-encoded string [MAX LENGTH 255]
A short-name.
None by default.
This is alpha code. Lots of things aren't implemented yet.
Adam P. Blinkinsop <spaceman@spu.edu>
Copyright (C) 2004 by Adam P. Blinkinsop
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
To install WWW::Webjay, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Webjay
CPAN shell
perl -MCPAN -e shell install WWW::Webjay
For more information on module installation, please visit the detailed CPAN module installation guide.