2017 © Pedro Peláez
 

library php-yesmail-api

PHP implementation of the Yesmail v1 API

image

popsugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  • Tuesday, May 12, 2015
  • by pkallos
  • Repository
  • 75 Watchers
  • 0 Stars
  • 1,309 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 20 Versions
  • 26 % Grown

The README.md

php-yesmail-api

Yesmail v1 API PHP Client. Implementation for Subscriber, Master, and List Management APIs., (*1)

Getting started

Yesmail can be installed using composer. Add the following to your composer.json file., (*2)

"popsugar/php-yesmail-api": "1.0.0"

Examples

Subscriber API Sample code:, (*3)

$client = new Yesmail\CurlClient('username', 'password');
$yesmail = new Yesmail\Yesmail($client);
$subscriber = $yesmail->Subscriber_Lookup(array('email' => 'user@company.com'));

Master API Sample code:, (*4)

$client = new Yesmail\CurlClient('username', 'password');
$yesmail = new Yesmail\Yesmail($client);
$masterName = 'Test Master';
$fromName = 'yoursite';
$fromDomain = 'yoursite.com';
$division = 'My Division';
$encoding = 'UTF-8';
$subject = 'A Subject';
$envelope = new Yesmail\YesmailMasterEnvelope($masterName, $fromName, $fromDomain, $division, $encoding, $subject);
$targeting = NULL;
$scheduling = array();
$ret = $yesmail->Master_Create($envelope, $targeting, $scheduling);

List Management API Sample code:, (*5)

$client = new Yesmail\CurlClient('username', 'password');
$yesmail = new Yesmail\Yesmail($client);

$name = 'My List';
$type = 'DISTRIBUTIONLIST';
$subtype = 'SEEDLIST';
$deleteInsteadOfAppend = true;
$subscriberIds = array(1, 2, 3);
$emails = array();
$subscriberList = new Yesmail\YesmailListManagementSubscriberList($deleteInsteadOfAppend, $subscriberIds, $emails);
$modifyList = new Yesmail\YesmailListManagementModifyList($name, $type, $subtype, $subscriberList);
$ret = $yesmail->ListManagement_Update_List($modifyList);

Contributing

To contribute to this project: * Create a fork of this repository * Create a thoughtfully named branch for your feature/bug * Package your changes into meaningful commits with meaningful commit messages. * Open a pull-request into PopSugar/php-yesmail-api@master, (*6)

Please write unit tests for new code, and make sure existing unit tests pass. You can run the unit tests using phpunit from the top level directory., (*7)

The Versions

12/05 2015

dev-master

9999999-dev https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

13/04 2015

dev-cp-curl-close

dev-cp-curl-close https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

11/03 2015

dev-nyeo-get-masterid-from-name

dev-nyeo-get-masterid-from-name https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

10/10 2013

dev-mp-yesmail-cant-count

dev-mp-yesmail-cant-count https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

02/10 2013

dev-cp-dont-check-logical-connector

dev-cp-dont-check-logical-connector https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

27/09 2013

dev-cp-subscriber-retrieve

dev-cp-subscriber-retrieve https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

21/09 2013

dev-cp-target-attribute-bug-fixes

dev-cp-target-attribute-bug-fixes https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

16/09 2013

dev-cp-status-bug

dev-cp-status-bug https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

13/09 2013

dev-cp-fix-exception-namespace

dev-cp-fix-exception-namespace https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

06/09 2013

dev-cp-2621

dev-cp-2621 https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

05/09 2013

dev-cp-subscribe-and-send

dev-cp-subscribe-and-send https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

26/08 2013

dev-integration-bug-fixes

dev-integration-bug-fixes https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

24/08 2013

dev-cp-fix-for-tests

dev-cp-fix-for-tests https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

16/08 2013

dev-subscriber-update

dev-subscriber-update https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

16/08 2013

dev-remove-shopstyle

dev-remove-shopstyle https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

16/08 2013

dev-master-get-by-name

dev-master-get-by-name https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

14/08 2013

dev-remove-guzzle

dev-remove-guzzle https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

yesmail

14/08 2013

dev-cp-asset-api

dev-cp-asset-api https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

 

yesmail

08/08 2013

dev-pk-readme

dev-pk-readme https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

 

yesmail

08/08 2013

1.0.0

1.0.0.0 https://github.com/PopSugar/php-yesmail-api

PHP implementation of the Yesmail v1 API

  Sources   Download

MIT

The Requires

 

yesmail