Skip to content

Instantly share code, notes, and snippets.

@tribulant
Last active January 15, 2018 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tribulant/dc64ee236c309cce0ca1eba44eedd7f7 to your computer and use it in GitHub Desktop.
Save tribulant/dc64ee236c309cce0ca1eba44eedd7f7 to your computer and use it in GitHub Desktop.
Newsletter plugin API - Send/Queue a Newsletter
<?php
$data = array(
'api_method' => 'send_email',
'api_key' => '37C1D6053E817258848E507D29CCCE49',
'api_data' => array(
'history_id' => "123",
)
);
// Success: {"success":true,"result":"8 emails have been queued successfully","method":"send_newsletter"}
// Error: {"success":"false","errormessage":"No newsletter was specified"}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment