omgdotlol
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -13,5 +13,6 @@ | ||
class Client { | ||
constructor(token, url="https://api.omg.lol") { | ||
constructor(token, email, url="https://api.omg.lol") { | ||
this.token = token; | ||
this.url = url; | ||
this.email = email; | ||
} | ||
@@ -28,4 +29,4 @@ | ||
async getAccount() { | ||
const response = await this.get('/account'); | ||
async getAccountInfo() { | ||
const response = await this.get(`/account/${this.email}/info`); | ||
return new Account(response.email, response.name, response.created, response.settings); | ||
@@ -32,0 +33,0 @@ } |
{ | ||
"name": "omgdotlol", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "API wrapper for omg.lol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1329
29