-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import of MIOREL/WWW-Grooveshark-0.02 from CPAN.
gitpan-cpan-distribution: WWW-Grooveshark gitpan-cpan-version: 0.02 gitpan-cpan-path: MIOREL/WWW-Grooveshark-0.02.tar.gz gitpan-cpan-author: MIOREL gitpan-cpan-maturity: released
- Loading branch information
Showing
11 changed files
with
387 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/perl | ||
|
||
use warnings; | ||
use strict; | ||
|
||
use WWW::Grooveshark; | ||
|
||
# specify an API key to try this example or pass in on the command line | ||
my $api_key = shift || 'deadbeef'; | ||
|
||
my $gs = WWW::Grooveshark->new; | ||
|
||
my $r; | ||
$r = $gs->session_start(apiKey => $api_key) or do { | ||
printf STDERR "ERROR: " . $r->fault_line; | ||
exit(1); | ||
}; | ||
|
||
my @methods = $gs->service_getMethods->methods; | ||
for(sort {$a->{method} cmp $b->{method}} @methods) { | ||
my $method_name = $_->{method}; | ||
my @parameters = @{$_->{parameters}}; | ||
printf("%s(%s)\n", $method_name, join(", ", @parameters)); | ||
} |
Oops, something went wrong.