- new(key=>'key', secret=>'secret', [base=>'http://other/location'])
- ranks(lid=>'', userkey=>'', username=>'', [scope=>SCOPE_DAILY])
- scoreSave(lid => '', points => '', userkey => '', username => '', [data => ''])
- scoreGet(lid => '', [userkey => '', username=>''], [scope=>SCOPE_DAILY], [page => 0], [record => 20])
- achievementGrant(aid=>'', username=>'', userkey=>'')
- achievementGet(username=>'', userkey=>'')
- logError(subject=>'', [details=>''])
- SEE ALSO
- COPYRIGHT AND LICENSE
Net::Mogade - Perl Wrapper for the mogade.com leaderboard/scores service
my $obj = Net::Mogade->new( key => '4edd1d4cd1798f5d86000003', secret => 'Yl=>yBmUNS6FuNUyNnBu8', ); 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 provided by mogade
Secret provided by mogade - Keep secret
Base url to mogade api. Default is mogade.com's api servers
Get a player's current rank by providing a leaderboard(
userkey. Optionally provide scopes. Will return all scopes unless one is specified.
Updates a users score for a given leaderboard(
userkey. data is an optional 50 character string that will be stored and returned when scores are retrieved.
scoreGet(lid => '', [userkey => '', username=>''], [scope=>SCOPE_DAILY], [page => 0], [record => 20])
Retrieves scores for a given leaderboard (
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.
userkey pair an achievement(
Retrieves achievements for a given
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
Records a game startup for a given
Gavin Mogan <email@example.com>
Gavin Mogan <firstname.lastname@example.org>
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.