8000 GitHub - MaMuk/Mautic-command-line: Call some Mautic API urls from command line
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MaMuk/Mautic-command-line

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it for?

This script allows you to create a new segment email on your Mautic installation from command line. You can use this to automate marketing messages. It uses Mautic "Basic authentication", so you should NOT use this without SSL (https).

Requirements

  • All Mautic PHP API requirements

Command line example

php mautic.php --baseUrl <yout Mautic base url> --userName <mautic username> --password <mautic password> --emailName "Email Name" --emailSubject "Email subject" --emailHtml "<b>This is your email!</b>" --emailSegments 7,3,1

Parameters

  • baseUrl: your Mautic url installation.
  • userName: username used to login at Mautic
  • password: password for the user above
  • emailName: the name of email on Mautic
  • emailSubject: the email subject
  • emailHtml: the content of email itself
  • emailSegments: comma separated list of Mautic segments ids

Return

  • returns 0 on a successfull execution.
  • returns != 0 otherwise

Also returns the JSON enconded response from Mautic API email/new endpoint.

About

Call some Mautic API urls from command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%
0