Skip to content

masmerino13/pepocampaing_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PHP Pepo Campaign Library

There a simple Pepo Campaign library in PHP

Prerequisites

This library use cUrl

Configuration

Set the pepo key and api secret key in the pepocampaign class constructor

$this->pepo_key = 'change-me';
$this->pepo_secret = 'change-me';

Also you can set the time zone

date_default_timezone_set('America/Los_Angeles');

How to use it

require ("pepocampaign.php");
$pepo = new pepocampaign();

Create contact list

require ("pepocampaign.php");
$pepo = new pepocampaign();
$atributes = array('name' => 'The new list name', 'source' => 'Loremp ipsum');
$pepo->create_list($atributes);

Add contact to list

require ("pepocampaign.php");
$pepo = new pepocampaign();
$pepo->set_list(8);
$atributes = array('email' => 'user@email.com', 'first_name' => 'Loremp', 'last_name' => 'Ipsum');
$pepo->add_contact_to_list($atributes);

Remove contact from list

require ("pepocampaign.php");
$pepo->set_list(8);
$pepo = new pepocampaign();
$atributes = array('email' => 'user@email.com');
$pepo->remove_contact_from_list($atributes);

Change user status

require ("pepocampaign.php");
$pepo = new pepocampaign();
$atributes = array('email' => 'user@email.com', 'type' => 'unsubscribed');
$pepo->change_user_status($atributes);

About Pepo Campaign

Pepo Campaigns builds on our team’s 6 years of experience sending >1 billion emails through campaigns, transactional, and targeted trigger emails (for large e-commerce companies like Fab.com), offering you enterprise-level features at startup speed.

Create gorgeous emails with our drag-and-drop template tool Optimize your campaigns using insightful reports and analytics Target your campaigns with advanced segmentation and A/B testing Leverage powerful marketing automation to create sophisticated trigger flows Utilize our API’s to send transactional emails All made simple with no code required on your end, so your developers can stay focused on the technology while your marketing team can focus on the message.

About

Pepo Campaign Class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages