mailchimp-buddy
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -13,2 +13,3 @@ import { AxiosResponse } from 'axios'; | ||
list(): Promise<AxiosResponse<any>>; | ||
get(email: string): Promise<AxiosResponse<any>>; | ||
subscribe(email: string): Promise<AxiosResponse<any>>; | ||
@@ -15,0 +16,0 @@ unsubscribe(email: string): Promise<AxiosResponse<any>>; |
@@ -23,2 +23,7 @@ "use strict"; | ||
}, | ||
get(email) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield axios_1.default.get(`${baseUrl}/${md5(email)}`, { headers }); | ||
}); | ||
}, | ||
subscribe(email) { | ||
@@ -25,0 +30,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "mailchimp-buddy", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
@@ -25,2 +25,6 @@ import * as crypto from 'crypto'; | ||
async get(email: string) { | ||
return await axios.get(`${baseUrl}/${md5(email)}`, { headers }); | ||
}, | ||
async subscribe(email: string) { | ||
@@ -27,0 +31,0 @@ const data = { status: 'subscribed' }; |
6243
139