https://github.com/michaelborn/mailerlitebash
Simple Bash SDK for the MailerLite API https://developers.mailerlite.com/v2/reference
https://github.com/michaelborn/mailerlitebash
Last synced: about 1 month ago
JSON representation
Simple Bash SDK for the MailerLite API https://developers.mailerlite.com/v2/reference
- Host: GitHub
- URL: https://github.com/michaelborn/mailerlitebash
- Owner: michaelborn
- License: gpl-3.0
- Created: 2018-05-21T03:10:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-26T16:17:15.000Z (about 8 years ago)
- Last Synced: 2025-11-28T10:08:21.129Z (7 months ago)
- Language: Shell
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MailerLite Bash Integration
Just because!
## Getting Started
Create a new `config.sh` file containing the API version URL and API key.
```bash
#!/usr/bin/env bash
# Store config secrets like API key and URI.
export mlite_api_uri="http://api.mailerlite.com/api/v2/";
export mlite_api_key="bla_key_stuff";
```
## Authentication
Run `./mlite-account` to verify your API key.
## Groups
### Query Group(s)
```bash
./mlite-group --get
./mlite-group --get --id 12345
```
### Create Group
```bash
./mlite-group --new --name "A bunch of folks who signed up from the website."
```
### Update Group Name
```bash
./mlite-group --update --name "Website newsletter signups"
```
### Delete Group
```bash
./mlite-group --group --id 12345
```
## Subscribers
### Create Subscriber
```bash
./mlite-subscriber --new --name Mike --email xxx@gmail.com
```
### Update Subscriber
```bash
./mlite-subscriber --update --name "Michael Born" --email xyz@gmail.com --id 2328
```
## Campaigns
### Get Campaigns By Status
```bash
./mlite-campaign --get --status sent
./mlite-campaign --get --status draft
```
### Create Campaign
```bash
./mlite-campaign --new --subject "March Newsletter"
```
### Create Campaign Email
```bash
./mlite-campaign --email < "My HTML text here"
```
### Send Campaign Email
```bash
./mlite-campaign --action send