import Client from './client'; export default class SnsNotifications extends Client { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } options.serviceName = 'hipchat-sns-bridge'; super(options); } post(roomId, options = {}) { return this.makeRequest(`${this.host}/hipchat/room/${roomId}/notification`, { ...options, method: 'POST', }); } }