hqtrivia-api
Advanced tools
Comparing version 1.0.0 to 1.2.0
@@ -0,0 +0,0 @@ module.exports = { |
{ | ||
"name": "hqtrivia-api", | ||
"version": "1.0.0", | ||
"version": "1.2.0", | ||
"description": "HQ Trivia API wrapper for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -18,2 +18,3 @@ # HQ Trivia API | ||
- `hq.connectToGame()` - Connect to game | ||
- `hq.getUpcomingSchedule()` - Get upcoming games schedule | ||
@@ -45,3 +46,3 @@ ## Trivia Game Methods | ||
```js | ||
const HQTrvia = require('hqtrivia-api') | ||
const HQTrivia = require('hqtrivia-api') | ||
const hq = new HQTrivia('[token]') | ||
@@ -70,3 +71,3 @@ | ||
```js | ||
const HQTrvia = require('hqtrivia-api') | ||
const HQTrivia = require('hqtrivia-api') | ||
const hq = new HQTrivia('[token]') | ||
@@ -100,2 +101,2 @@ | ||
}) | ||
``` | ||
``` |
@@ -69,2 +69,7 @@ const axios = require('axios') | ||
async getUpcomingSchedule() { | ||
const leaderboard = await this.axios.get('/shows/schedule') | ||
return leaderboard.data.shows | ||
} | ||
async addFriend (userId) { | ||
@@ -71,0 +76,0 @@ const addFriendRes = await this.axios.post(`/friends/${userId}/requests`) |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
10455
168
99