Git Product home page Git Product logo

ecomail-php's Introduction

PHP wrapper for Ecomail API

Build Status Downloads this Month

Instalation

composer require ecomailcz/ecomail

Usage

$ecomail = new Ecomail('API_KEY');
$ecomail->getListsCollection();

When there are more results, you will get last_page parameter in your response, which you can then use in another request.

$ecomail->page(2)->getListsCollection();

You will find your API key in your account in "integrations" section.

Available methods

All methods returns: array stdClass string

For more detailed documentation please visit: https://ecomailczv2.docs.apiary.io/

List and Subscriber Management

getListsCollection

addListCollection

showList

updateList

getSubscribers

getSubscriber

getSubscriberList

addSubscriber

removeSubscriber

updateSubscriber

addSubscriberBulk

deleteSubscriber

getSubscriberByEmail

Campaigns

listCampaigns

addCampaign

updateCampaign

sendCampaign

getCampaignStats

getCampaignStatsDetail

Automation

listAutomations

triggerAutomation

getPipelineStats

getPipelineStatsDetail

Templates

createTemplate

Domains

listDomains

createDomain

deleteDomain

Transactional Emails

sendTransactionalEmail

sendTransactionalTemplate

getTransactionalStats

getTransactionalStatsDOI

Transactions

createNewTransaction

createBulkTransactions

updateTransaction

deleteTransaction

Feeds

refreshProductFeed

refreshDataFeed

Tracker

addEvent

Search

search

Discount Coupons

importCoupons

deleteCoupons

ecomail-php's People

Contributors

ecomail-cz avatar filipsedivy avatar grogy avatar jakubboucek avatar jakubfilounek avatar jakubkontra avatar kozakr avatar lyk-antrop avatar pavelweirich avatar pekral avatar tlapi avatar vaclavgreif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ecomail-php's Issues

Chybějící možnost "deleteList"

Zdravím,

proč API nemá žádnou možnost, jak smazat list? Například metoda "deleteList" nebo "removeList" apod. Pokud lze seznamy vytvářet, musí být možnost je upravovat a také mazat.

Díky za info.

Requesty ve formátu JSON

Toto je přímo z mailu, který jste mi poslali:

vidím, že k nám zasíláte kontakty v podobě x-www-form-urlencoded, jak je psáno v dokumentaci API, je potřeba requesty zasílat jako Content-Type:application/json.

Tato knihovna ale posílá x-www-form-urlencoded.

Stránkování zdroje

Dobrý den,

Jak přesně mám použít stránkování s metodou getSubscribers()? V odpovědi ze serveru vidím odkaz "next_page_url", ale nikde není možnost jak page nastavit při volání.

Chyba v metodě removeSubscriber()

Máte chybu v metodě "removeSubscriber", která nekoresponduje s dokumentací API. Metodě DELETE nelze předat žádný parametr, avšak pro odhlášení uživatele z listu je potřeba předat argument "email".

Pokud udělám opravu, bude schválen Pull-Request?

Feature Request: GDPR - Odstranění e-mailu ze všech seznamů

V souvislosti s přípravami na GDPR bychom uvítali možnost přes API smazat (nikoli jen unsubscribnout) e-mail naráz ze všech mailing listů. Plánuje se přidání takové funkcionality, případně bylo by možné ji přidat? V dokumentaci k API jsme takovou možnost neobjevili.

V současnosti lze e-mail vymazat pouze z backendu ecomailapp.cz, a to ještě poměrně komplikovaně.

Bad condition on response format

if (is_object(json_decode($output))) {

There is a problem with this condition. When i use getListsCollection () method and i have more than one list defined, i got from json_decode () function 'array of stdClasses'.

@Tlapi, @filipsedivy you could at least make function send() protected, i want to inherit it and build responseDataObject to unify return type of all methods.

Thanks

json_decode(): Depth must be greater than zero

Jsou dva problémy v knihovně:

Notice: Undefined variable: options in /var/www/html/vendor/ecomailcz/ecomail/src/Ecomail.php on line 491

Warning: json_decode(): Depth must be greater than zero in /var/www/html/vendor/ecomailcz/ecomail/src/Ecomail.php on line 491

Používáme PHP 7.4.*

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.