elemental-live-client
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -15,3 +15,5 @@ import {Resource} from './resource'; | ||
eventStatus(eventId) { | ||
return this.elementalClient.sendRequest('GET', `/api/live_events/${eventId}/status`); | ||
const headers = {'Accept': 'application/json'}; | ||
return this.elementalClient.sendRequest('GET', `/api/live_events/${eventId}/status`, null, null, headers); | ||
} | ||
@@ -18,0 +20,0 @@ |
{ | ||
"name": "elemental-live-client", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "JS library to communicate with Elemental live API", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -1,2 +0,2 @@ | ||
import ElementalClient from '../lib/elemental-client'; | ||
import ElementalClient from '../lib/main'; | ||
import {LiveEvent} from '../lib/live-event'; | ||
@@ -3,0 +3,0 @@ import {Resource} from '../lib/resource'; |
@@ -1,2 +0,2 @@ | ||
import ElementalClient from '../lib/elemental-client'; | ||
import ElementalClient from '../lib/main'; | ||
@@ -3,0 +3,0 @@ describe('integration tests', () => { |
@@ -37,3 +37,3 @@ import {LiveEvent} from '../lib/live-event'; | ||
assert.equal(result, testData.retval); | ||
assert(testData.sendRequest.calledWith('GET', '/api/live_events/199/status')); | ||
assert(testData.sendRequest.calledWith('GET', '/api/live_events/199/status', null, null, {'Accept': 'application/json'})); | ||
}) | ||
@@ -40,0 +40,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123366
805
18