mcpedl
v1.2.0
Published
A JavaScript library to interact with MCPEDL's API
Downloads
5
Readme
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", "[email protected]", "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("[email protected]", "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