spypoint-api-wrapper
Advanced tools
Comparing version
{ | ||
"name": "spypoint-api-wrapper", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Node.js wrapper for the Spypoint game camera API", | ||
@@ -5,0 +5,0 @@ "main": "spypoint.js", |
@@ -26,3 +26,3 @@ import fetch from 'node-fetch' | ||
const data = await fetch(apiEndpoint, { | ||
headers = this._headers | ||
headers: this._headers | ||
}) | ||
@@ -56,4 +56,8 @@ return data.json() | ||
const credentialRes = await fetch(LOGIN, { | ||
username: this._username, | ||
password: this._password | ||
method: 'POST', | ||
headers: this._headers, | ||
body: JSON.stringify({ | ||
username: this._username, | ||
password: this._password | ||
}) | ||
}) | ||
@@ -60,0 +64,0 @@ |
7171
1.31%123
3.36%