Net::Mogade - Perl Wrapper for the mogade.com leaderboard/scores service
version 0.001
my $obj = Net::Mogade->new( key => '4edd1d4cd1798f5d86000003', secret => 'Yl=>yBmUNS6FuNUy[]NnBu8', ); warn Dumper $obj->scoreGet(lid=>'4edd31e9d1798f1639000001', scope=>Net::Mogade::SCOPE_YESTERDAY);
Net::Mogade - Perl wrapper for the mogade.com leaderboard/scores service
Constant for daily scores. Mostly for scoresGet and ranks.
Constant for weekly scores. Mostly for scoresGet and ranks.
Constant for overall scores. Mostly for scoresGet and ranks.
Constant for yesterday scores. Mostly for scoresGet and ranks.
Creates a new Net::Mogade object. Options:
key
Key provided by mogade
secret
Secret provided by mogade - Keep secret
base (optional)
base
Base url to mogade api. Default is mogade.com's api servers
Get a player's current rank by providing a leaderboard(lid) username and userkey. Optionally provide scopes. Will return all scopes unless one is specified.
lid
username
userkey
Updates a users score for a given leaderboard(lid), username and userkey. data is an optional 50 character string that will be stored and returned when scores are retrieved.
Retrieves scores for a given leaderboard (lid). If username and userkey is provided, it will try to return the data (by page) surrounding the user. record controls how many are returned. page controls which page offset gets returned. Most can be mixed and matched.
page
record
Gives a username and userkey pair an achievement(aid)
aid
Retrieves achievements for a given username and userkey
Logs an error to the mogade servers. subject is the string that gets shown, details is optional amount of extra data that can be provided
subject
details
Records a game startup for a given userkey
Gavin Mogan <halkeye@cpan.org>
http://mogade.com/manage/api
Gavin Mogan <gavin@kodekoan.com>
This software is copyright (c) 2011 by Gavin Mogan.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::Mogade, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Mogade
CPAN shell
perl -MCPAN -e shell install Net::Mogade
For more information on module installation, please visit the detailed CPAN module installation guide.