mcpedl

1.2.0 • Public • Published

mcpedl.js

A JavaScript library to interact with MCPEDL's API

Get a submission by slug

MCPEDL.Submissions.getSubmissionBySlug("azalea").then(res=>{
    // Do something...
})

Update V1.1.0

Added some authentication related functions.

Create an account

MCPEDL.Auth.register("Example", "john@example.com", "Password1234").then(res=>{
    // Do something...
})

Login to an account

(or more specifically, get the login token/get user info from email and password)

MCPEDL.Auth.login("john@example.com", "Password1234").then(res=>{
    // Do something...
})

Update V1.2.0

MCPEDL.Auth.getUserFromToken("<TOKEN>").then(res=>{
    // Do something...
})
// Rating, id, token
MCPEDL.Submission.vote(5, 12345, "<TOKEN>").then(res=>{
    // Do something...
})

More coming soon, this is still in development

Readme

Keywords

none

Package Sidebar

Install

npm i mcpedl

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

39.5 kB

Total Files

7

Last publish

Collaborators

  • antspa767