2017 © Pedro Peláez
 

library salesmanago-api

SalesManago API

image

pixers/salesmanago-api

SalesManago API

  • Sunday, February 12, 2017
  • by ikselll
  • Repository
  • 8 Watchers
  • 5 Stars
  • 15,435 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 4 Forks
  • 3 Open issues
  • 5 Versions
  • 16 % Grown

The README.md

SalesManago API Client

Implementation of SalesManago API version 1.45. For more details about the API go to SalesManago site., (*1)

Installation

Install the package through composer.
For the latest stable version use:, (*2)

php composer.phar require pixers/salesmanago-api:1.1.1

For the latest version use:, (*3)

php composer.phar require pixers/salesmanago-api:dev-master

Usage

API Client is divided into several sub-services, responsible for particular resources (e.g. Contacts, Events):, (*4)

  • ContactService
    • ContactService::create($owner, $data)
    • ContactService::update($owner, $email, $data)
    • ContactService::upsert($owner, $email, $data)
    • ContactService::delete($owner, $email, $data)
    • ContactService::has($owner, $email)
    • ContactService::useCoupon($email, $coupon)
    • ContactService::listByEmails($owner, $data)
    • ContactService::listByIds($owner, $data)
    • ContactService::listRecentlyModified($owner, $data)
    • ContactService::listRecentActivity($data)
  • CouponService
    • CouponService::create($owner, $email, $data)
  • EmailService
    • EmailService::create($data)
  • EventService
    • EventService::create($owner, $email, $data)
    • EventService::update($owner, $eventId, $data)
    • EventService::delete($owner, $eventId)
  • MailingListService
    • MailingListService::add($email)
    • MailingListService::remove($email)
  • PhoneListService
    • PhoneListService::add($email)
    • PhoneListService::remove($email)
  • RuleService
    • RuleService::create($owner, $data)
  • SystemService
    • SystemService::registerAccount($data)
    • SystemService::authorise($userName, $password)
  • TagService
    • TagService::getAll($owner, $data)
    • TagService::modify($owner, $email, $data)
  • TaskService
    • TaskService::create($data)
    • TaskService::update($taskId, $data)
    • TaskService::delete($taskId)

Basic usage

<?php

use Pixers\SalesManagoAPI\Client;
use Pixers\SalesManagoAPI\SalesManago;

// First - initialize configured client
// endpoint - e.g. https://app3.salesmanago.pl/api/
$client = new Client($clientId, $endpoint, $apiSecret, $apiKey);

// Then - initialize SalesManago Services Locator
$salesManago = new SalesManago($client);

// Now you can use specific services
$contactResponse = $salesManago->getContactService()->delete($owner, $email, $data);

$eventResponse = $salesManago->getEventService()->delete($owner, $eventId);

Tests

Create phpunit configuration in phpunit.xml file, based on template from phpunit.xml.dist. After that you can run tests with:, (*5)

phpunit -c phpunit.xml, (*6)

Authors

License

Copyright 2016 PIXERS Ltd - www.pixersize.com, (*7)

Licensed under the BSD 3-Clause, (*8)

The Versions

12/02 2017

dev-master

9999999-dev

SalesManago API

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Sylwester Łuczak
by Michał Kanak

17/08 2016

1.1.2

1.1.2.0

SalesManago API

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Sylwester Łuczak
by Michał Kanak

02/08 2016

1.1.1

1.1.1.0

SalesManago API

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Sylwester Łuczak
by Michał Kanak

25/07 2016

1.1

1.1.0.0

SalesManago API

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Sylwester Łuczak
by Michał Kanak

24/08 2015

1.0

1.0.0.0

SalesManago API

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Sylwester Łuczak