mailerlite
Advanced tools
Comparing version
@@ -5,3 +5,2 @@ import { Campaigns, Fields, Segments, Stats, Settings, Subscribers, Webhooks, Groups } from './api'; | ||
private baseUrl; | ||
private userAgent; | ||
private client; | ||
@@ -8,0 +7,0 @@ campaigns: Campaigns; |
@@ -52,3 +52,2 @@ "use strict"; | ||
this.baseUrl = 'https://api.mailerlite.com/api/v2'; | ||
this.userAgent = 'MailerLite Node.js SDK (https://git.io/mailerlite)'; | ||
this.client = null; | ||
@@ -58,3 +57,3 @@ this.client = axios_1.default.create({ | ||
headers: { | ||
'User-Agent': this.userAgent + " / " + this.version, | ||
'User-Agent': "MailerLite Node.js SDK/v" + this.version + " (https://git.io/mailerlite)", | ||
'X-MailerLite-ApiKey': apiKey, | ||
@@ -61,0 +60,0 @@ 'Content-Type': 'application/json', |
{ | ||
"name": "mailerlite", | ||
"description": "Node module for MailerLite HTTP API v2", | ||
"version": "1.0.0-canary.1", | ||
"version": "1.0.0-canary.2", | ||
"repository": "aniftyco/mailerlite", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
20503
-0.32%440
-0.45%