emailable/emailable-node

View on GitHub
lib/batches.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict'

class Batches {

  constructor(client) {
    this.client = client
  }

  verify(emails, options = {}) {
    return this.client.makePostRequest(
      'batch', { emails: emails.join(','), ...options }
    )
  }

  status(id, options = {}) {
    return this.client.makeGetRequest('batch', { id: id, ...options })
  }

}

module.exports = Batches