2.0.3 • Published 8 years ago

smm v2.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

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 ID
  • callback: Callback when course data is grabbed:
    • error: An error, if there was one
    • data: 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 ID
  • name: The course name
  • tag: The course tag
  • style: Short-hand version of course style (skin)
  • style_long: Longer, full, version of course style (skin)
  • style_icon: URL to the course style icon
  • created: When the course was made. Either a relative time (1 day ago) or date (09/25/15)
  • difficulty: Course difficulty
  • plays: Individual plays
  • attempts: Total attempts
  • clears: Clear count
  • stars: Star count
  • shares: Social media shares
  • clear_rate: Percentage between 0 and 100
  • miiverse_url: URL to course MiiVerse post
  • thumbail: Thumbnail URL
  • full_view: URL to full course image
  • creator: Player object for creator
    • profile: URL to players account
    • mii: URL to players Mii image
    • display_name: Players Mii display name
    • profile_name: Players profile name
    • flag: Players country short-hand
    • medals: Total medals player has
  • first_clear: Player object for first clear-player
    • profile: URL to players account
    • mii: URL to players Mii image
    • display_name: Players Mii display name
    • profile_name: Players profile name
    • flag: Players country short-hand
  • world_record: Player object for world record holder
    • profile: URL to players account
    • mii: URL to players Mii image
    • display_name: Players Mii display name
    • profile_name: Players profile name
    • flag: Players country short-hand
    • time_readable: Readable version of the world record time
    • time: World record time in milliseconds
  • recent_players: Array of player objects
    • profile: URL to players account
    • mii: URL to players Mii image
    • display_name: Players Mii display name
    • profile_name: Players profile name
    • flag: Players country short-hand
  • cleared_by: Array of player objects
    • profile: URL to players account
    • mii: URL to players Mii image
    • display_name: Players Mii display name
    • profile_name: Players profile name
    • flag: Players country short-hand
  • stared_by: Array of player objects
    • profile: URL to players account
    • mii: URL to players Mii image
    • display_name: Players Mii display name
    • profile_name: Players profile name
    • flag: Players country short-hand
2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago