Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.205.713 Times

WebService::LastFM 0.07

Company: Christian Brink
Date Added: November 08, 2013  |  Visits: 354

WebService::LastFM

Report Broken Link
Printer Friendly Version


Product Homepage
Download (34 downloads)



WebService::LastFM provides you a simple interface to Last.FM Web service API. It currently supports Last.FM Stream API 1.2.<br /><br />METHODS ^<br /><br />new(%args)<br /><br /> $lastfm = WebService::LastFM->new(<br /> username => $username,<br /> password => $password,<br /> );<br /><br /> Creates and returns a new WebService::LastFM object.<br />get_session()<br /><br /> $stream_info = $lastfm->get_session;<br /><br /> Returns a session key and stream URL as a WebService::LastFM::Session object.<br />get_new_playlist()<br /><br /> $stream_info = $lastfm->get_new_playlist();<br /><br /> Returns a WebService::LastFM::Playlist that contains a list of tracks based on the current station. You can/should use the get_next_track method to retrieve the WS:LFM:Track object. Once the playlist is depleted (right now 5 tracks) just grab a new playlist.<br /><br /> my $playlist = $lastfm->get_new_playlist();<br /><br /> while ( my $track = $playlist->get_next_track() ) {<br /><br /> print "Playing '".$track->title."' by ".$track->creator."n";<br /><br /> my @cmd = ( 'mpg123' , $track->location() );<br /> system( @cmd );<br /><br /> }<br /><br />get_nowplaying()<br /><br /> $current_song = $lastfm->get_nowplaying;<br /><br /> Returns a WebService::LastFM::NowPlaying object to retrieve the information of the song you're now listening.<br />send_command($command)<br /><br /> $response = $lastfm->send_command($command);<br /><br /> Sends a command to Last.FM Stream API to control the streaming. $command can be one of the follows: skip, love, ban, rtp, or nortp.<br /><br /> $response which you'll get after issuing a command will be either 'OK' or 'FAILED' as a string.<br />change_station($friend)<br /><br /> $response = $lastfm->change_station($friend);<br /><br /> Changes the station of your stream to $friend's one.<br /><br /> $response which you'll get after issuing a command will be either 'OK' or 'FAILED' as a string.<br />change_tag($tag)<br /><br /> $response = $lastfm->change_tag($tag);<br /><br /> Change the station of your stream to play music tagged with $tag.<br /><br /> $response which you'll get after issuing a command will be either 'OK' or 'FAILED' as a string.<br />ua<br /><br /> $lastfm->ua->timeout(10);<br /><br /> Returns the LWP::UserAgent object which is internally used by $lastfm object. You can set some values to customize its behavior.

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: 039ok039 Command Failed Issuing Lastfm Lastfmgtget Playlist Object Playlist Response Retrieve Returns Station Stream Tracks Webservicelastfm You039ll
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


WEBSERVICE::LASTFM RELATED
Utilities  -  PageScrape 1.0
PageScrape is a command line utility, which can be used to automatically retrieve specified data (Screen Scrape, Web-Clip) from a given target Web Page. For example, retrieving the current stock price for your company from your favorite stock...
153 KB  
Audio Tools  -  Ezstream 0.4.3
Ezstream is a command line source client for the Icecast media streaming server. It can stream Ogg Vorbis and MP3 audio, as well as Ogg Theora video, either "as-is" without reencoding (which uses only very little CPU time) or it can use external...
174.08 KB  
Development Tools  -  AJAX/JSHttpRequest for XML Tools 0.1.0
The Web applications can be programmed in PHP or any other server-side scripting language.Here are some key features of "AJAX/JSHttpRequest":JSR_createRequestObj():dlTE Returns XMLHttpRequest object or null if failed.JSR_sendRequest(requestObj,...
10 KB  
Network & Internet  -  django-fixture-magic 0.0.2
The django-fixture-magic package contains a few extra management tools to handle fixtures. Installation: You can get fixture-magic from pypi with: pip install django-fixture-magic The development version...
10.24 KB  
Libraries  -  Construct-java 1.0 RC1
Construct is a framework for command processing. It is based on a request/response cycle managed by a Controller. Construct-java has support for filters, filter chains and command chaining. The controller has two modes for request processing:...
471.04 KB  
Gaming Utilities  -  Momoko 0.4.1
Momoko project is a generic, object-oriented, modular, extensible environment for creating multi-user environments. It is suitable for writing MUDs, servers, and community-based Web sites. It is written in pure Java and supports Java and...
7.7 MB  
Libraries  -  OOPS 0.2003
OOPS is Object Oriented Persistent Store. SYNOPSIS use OOPS; transaction(sub { $oops = new OOPS dbi_dsn => $DBI_DSN, username => $username, password => $password, table_prefix => "MY"; $oops->commit; $oops->{my_1st_bit_of_data} = a...
296.96 KB  
Network & Internet  -  xajax 0.5 Beta 3
xajax project is an open source PHP class library for easily creating powerful PHP-driven, web-based AJAX Applications. Using xajax, you can asynchronously call PHP functions and update the content of your webpage without reloading the page....
68.61 KB  
Libraries  -  IPC::Run::Simple 1.3
IPC::Run::Simple is a simple system() wrapper. SYNOPSIS # Run a command and check whether it failed use IPC::Run::Simple; run("echo Hello, O Cruel World") or die "Command failed"; # Describe the failure use IPC::Run::Simple qw($ERR);...
5.12 KB  
Libraries  -  Net::FreeDB2 0.8.2.6
Net::FreeDB2 is a Perl module with FreeDB generic connection class. SYNOPSIS # quick and dirty CD ripper use strict; # Make device name use Getopt::Std; $::opt_d = ; getopts (d:); my $dev = $::opt_d || /dev/cdrom; # Make a...
30.72 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB