lib/victorops_api_client.js
/**
   * Gets the headers for a VictorOps API request.
   *
   * @returns {Object} Request headers.
   * @memberof VictorOpsApiClient
   */
Gets the headers for a VictorOps API request.
@returns {Object} Request headers.
Gets the headers for a VictorOps API request . @returns { Object } Request headers .
_getRequestHeaders() {
    if (!this._apiId || !this._apiKey) {
      throw new Error('Missing the Api ID (apiId) or Api Key (apiKey).');
    }
    return {
      'Accept': 'application/json; charset=utf-8',
      'Content-Type': 'application/json; charset=utf-8',
      'X-VO-Api-Id': this._apiId,
      'X-VO-Api-Key': this._apiKey,
      'User-Agent': USER_AGENT,
    };
  }
_getRequestHeaders ( ) { if ( ! this . _apiId || ! this . _apiKey ) { throw new Error ( 'Missing the Api ID (apiId) or Api Key (apiKey).' ) ; } return { 'Accept' : 'application/json; charset=utf-8' , 'Content-Type' : 'application/json; charset=utf-8' , 'X-VO-Api-Id' : this . _apiId , 'X-VO-Api-Key' : this . _apiKey , 'User-Agent' : USER_AGENT , } ; }
Gets the headers for a VictorOps API request.
Gets the headers for a VictorOps API request .