<commit_before>'use strict'

import Request from './helpers/request'
import Contacts from './endpoints/contacts'

const NodeHubspotApi = (apiKey = null) => {

  if (apiKey === null) throw new Error('ApiKey must be provided.')

  const api = new Request(apiKey)

  return {
    calendar: null,
    companies: null,
    contacts: new Contacts(api),
    blog: null,
    domains: null,
    files: null,
  }
}

module.exports = NodeHubspotApi<commit_msg>Added instance for Blog endpoint.<commit_after>import Request from './helpers/request'
import Contacts from './endpoints/contacts'
import Blog from './endpoints/blog'

const NodeHubspotApi = (apiKey = null) => {

  const api = new Request(apiKey)

  return {
    calendar: null,
    companies: null,
    contacts: new Contacts(api),
    blog: new Blog(api),
    domains: null,
    files: null,
  }
}

module.exports = NodeHubspotApi
{'fraction_non_alphanumeric': 0.11804767309875142, 'fraction_numerical': 0.0, 'mean_word_length': 3.569948186528497, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '597630', 'n_tokens_mistral': 276, 'n_tokens_neox': 276, 'n_words': 83}