smm
v2.0.3
Published
An API package for getting information relating to Super Mario Maker, including course information and user stats
Downloads
7
Readme
smm
An API package for getting information relating to Super Mario Maker, including course information and user stats
Install
npm i smm --save
Usage
getCourseData(courseID, callback)
Accepts two arguments:
courseID
: The 19-digit course IDcallback
: Callback when course data is grabbed:error
: An error, if there was onedata
: All available course data
var smm = require('smm');
smm.getCourseData(courseID, (error, data) => {
if (error) throw error;
console.log(data); // All data relating to the course
});
If no error, returns:
id
: The 19-digit course IDname
: The course nametag
: The course tagstyle
: Short-hand version of course style (skin)style_long
: Longer, full, version of course style (skin)style_icon
: URL to the course style iconcreated
: When the course was made. Either a relative time (1 day ago) or date (09/25/15)difficulty
: Course difficultyplays
: Individual playsattempts
: Total attemptsclears
: Clear countstars
: Star countshares
: Social media sharesclear_rate
: Percentage between 0 and 100miiverse_url
: URL to course MiiVerse postthumbail
: Thumbnail URLfull_view
: URL to full course imagecreator
: Player object for creatorprofile
: URL to players accountmii
: URL to players Mii imagedisplay_name
: Players Mii display nameprofile_name
: Players profile nameflag
: Players country short-handmedals
: Total medals player has
first_clear
: Player object for first clear-playerprofile
: URL to players accountmii
: URL to players Mii imagedisplay_name
: Players Mii display nameprofile_name
: Players profile nameflag
: Players country short-hand
world_record
: Player object for world record holderprofile
: URL to players accountmii
: URL to players Mii imagedisplay_name
: Players Mii display nameprofile_name
: Players profile nameflag
: Players country short-handtime_readable
: Readable version of the world record timetime
: World record time in milliseconds
recent_players
: Array of player objectsprofile
: URL to players accountmii
: URL to players Mii imagedisplay_name
: Players Mii display nameprofile_name
: Players profile nameflag
: Players country short-hand
cleared_by
: Array of player objectsprofile
: URL to players accountmii
: URL to players Mii imagedisplay_name
: Players Mii display nameprofile_name
: Players profile nameflag
: Players country short-hand
stared_by
: Array of player objectsprofile
: URL to players accountmii
: URL to players Mii imagedisplay_name
: Players Mii display nameprofile_name
: Players profile nameflag
: Players country short-hand