hqtrivia-api
Advanced tools
Comparing version 1.8.2 to 1.9.0
{ | ||
"name": "hqtrivia-api", | ||
"version": "1.8.2", | ||
"version": "1.9.0", | ||
"description": "HQ Trivia API wrapper for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -23,2 +23,3 @@ # HQ Trivia API | ||
- `hq.checkUsername(username)` - Check username | ||
- `hq.makePayout(email)` - Make payout | ||
@@ -25,0 +26,0 @@ ## Registration methods |
@@ -126,2 +126,10 @@ const axios = require('axios') | ||
async makePayout (email) { | ||
if (!this.token) throw new Error('This method cannot be used without authorization') | ||
const makePayout = await this.axios.post('/users/me/payouts', { | ||
email: email | ||
}) | ||
return makePayout.data | ||
} | ||
async changeUsername (username) { | ||
@@ -128,0 +136,0 @@ if (!this.token) throw new Error('This method cannot be used without authorization') |
18223
336
129