2017 © Pedro Peláez
 

library esputnik

Marketing automation system ESputnik.

image

ossbrownie/esputnik

Marketing automation system ESputnik.

  • Wednesday, May 16, 2018
  • by brownie
  • Repository
  • 2 Watchers
  • 3 Stars
  • 5,188 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 37 % Grown

The README.md

ESputnik

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Marketing automation system ESputnik., (*2)

curl

A basic CURL wrapper for PHP (see http://php.net/curl for more information about the libcurl extension for PHP), (*3)

Requirements

  • PHP >= 5.4
  • EXT-CURL = *

Installation

Add a line to your "require" section in your composer configuration:, (*4)

{
    "require": {
        "ossbrownie/esputnik": "0.1.3"
    }
}

Usage

$eSputnik = new ESputnik(
    new HTTPClient(
        new CurlClient(),
        new Config([
            'login' => 'tester',
            'password' => 'passwd'
        ])
    )
);

{
    $version = $eSputnik->version();
}

{
    $contact = new Contact();

    $contact
        ->setFirstName('FName')
        ->setLastName('LName')
        ->setContactKey('contact@site.com');

    $channelList = new ChannelList();
    $channelList->add(new EmailChannel([
        'value' => 'tester@site.com'
    ]));

    $fieldList = new FieldList();
    $fieldList
        ->add(new Field([
            'id' => 12345,
            'value' => 'CustomValue1',
        ]))
        ->add(new Field([
            'id' => 12346,
            'value' => 'CustomValue2',
        ]));

    $contact
        ->setFieldList($fieldList);

    $contact
        ->setChannelList($channelList);

    $subscribe = new Subscribe();
    $subscribe
        ->setFormType('test_type')
        ->getGroups()->add(new Group([
            'name' => 'Test group'
        ]));

    $response = $eSputnik->contactSubscribe($contact, $subscribe);
}

{
    $addressbooks = $eSputnik->addressbooks();
}

{
    $groups = $eSputnik->groups();
}

{
    $params = new ParamList();
    $params
        ->add(new Parameter([
            'name' => 'EmailAddress',
            'value' => 'tester@site.com',
        ]));

    $eSputnik->event(new Event([
        'eventTypeKey' => 'test-test',
        'keyValue' => 'test-' . time(),
        'params' => $params
    ]))
}

Tests

To run the test suite, you need install the dependencies via composer, then run PHPUnit., (*5)

$> composer.phar install
$> ./vendor/bin/phpunit --colors=always --bootstrap ./tests/bootstrap.php ./tests

License

HttpClient is licensed under the MIT License, (*6)

Contact

Problems, comments, and suggestions all welcome: oss.brownie@gmail.com, (*7)

The Versions

16/05 2018

dev-master

9999999-dev https://github.com/ossbrownie/esputnik

Marketing automation system ESputnik.

  Sources   Download

MIT LGPLv3

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Avatar brownie

esputnik brownie

16/05 2018

0.1.2

0.1.2.0 https://github.com/ossbrownie/esputnik

Marketing automation system ESputnik.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Avatar brownie

esputnik brownie

16/08 2017

0.1.1

0.1.1.0 https://github.com/ossbrownie/esputnik

Marketing automation system ESputnik.

  Sources   Download

LGPLv3

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Avatar brownie

esputnik brownie

24/07 2017

0.1.0

0.1.0.0 https://github.com/ossbrownie/esputnik

Marketing automation system ESputnik.

  Sources   Download

LGPLv3

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Avatar brownie

esputnik brownie

06/06 2017

0.0.3

0.0.3.0 https://github.com/ossbrownie/esputnik

Marketing automation system ESputnik.

  Sources   Download

LGPLv3

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Avatar brownie

esputnik brownie

05/06 2017

0.0.2

0.0.2.0 https://github.com/ossbrownie/esputnik

Marketing automation system ESputnik.

  Sources   Download

LGPLv3

The Requires

  • php >=5.4

 

by Avatar brownie

esputnik brownie

04/06 2017

0.0.1

0.0.1.0 https://github.com/ossbrownie/esputnik

Marketing automation system ESputnik.

  Sources   Download

LGPLv3

The Requires

  • php >=5.4

 

by Avatar brownie

esputnik brownie