elasticemail / elasticemail-php Goto Github PK
View Code? Open in Web Editor NEWElasticEmail - the PHP library for the Elastic Email REST API
ElasticEmail - the PHP library for the Elastic Email REST API
Could you please release at least a version (tag) here in GitHub? We cannot use the library in projects that have minimum-stability stable
.
I see library is already at version 4.0.x, but its not reflected here and it makes it hard to work with it.
When I try to use example of Events Get from your document I get next error
We're currently in the process of updating the Drupal integration with ElasticEmail and one part is to use this library instead of writing all ourselves.
However, we're missing some important API features like e.g. Account/Load
and others with regard to statistics and logs.
Are they really missing in the library or have they been hidden so well?
https://github.com/ElasticEmail/elasticemail-php/blob/master/lib/Model/Campaign.php#L287-L309
status have to be type of string
Hi,
I am trying to make a call on https://api.elasticemail.com/v2/email/send
but getting access denied
on production server but same code is working on my local.
what could be issue ?
Hello, for some messages I got interesting error.
Event type was not in the allowed list. And here is example of result that I got from the API
{
"TransactionID": "e9173e6a-e237-4174-a06a-d8547d82630e",
"MsgID": "Dw7ZNxeDhF8F5FDrJVYMaQ2",
"FromEmail": "[email protected]",
"To": "[email protected]",
"Subject": "Sit Down . . .",
"EventType": 30,
"EventDate": "2023-11-10T13:30:10Z",
"ChannelName": "HTTP API",
"MessageCategory": "NotDelivered",
"NextTryOn": null,
"Message": "Delivery not attempted because Contact's status was 'Stale' at the time of sending.",
"IPAddress": "",
"PoolName": ""
},
{
"TransactionID": "e9173e6a-e237-4174-a06a-d8547d82630e",
"MsgID": "tUcpo8WogEx6yCgs5L9EHg2",
"FromEmail": "[email protected]",
"To": "[email protected]",
"Subject": "Sit Down . . .",
"EventType": 30,
"EventDate": "2023-11-10T13:30:10Z",
"ChannelName": "HTTP API",
"MessageCategory": "NotDelivered",
"NextTryOn": null,
"Message": "Delivery not attempted because Contact's status was 'Stale' at the time of sending.",
"IPAddress": "",
"PoolName": ""
},
{
"TransactionID": "e9173e6a-e237-4174-a06a-d8547d82630e",
"MsgID": "AiAP7C3NWLdtKOeL8ePlGQ2",
"FromEmail": "[email protected]",
"To": "[email protected]",
"Subject": "Sit Down . . .",
"EventType": 30,
"EventDate": "2023-11-10T13:30:10Z",
"ChannelName": "HTTP API",
"MessageCategory": "NotDelivered",
"NextTryOn": null,
"Message": "Delivery not attempted because Contact's status was 'Unsubscribed' at the time of sending.",
"IPAddress": "",
"PoolName": ""
},
I changed email from and email to, because it's users data. But other information right from the API CALL
I used api call eventsByTransactionidGet
string(164) "Invalid value for enum '\ElasticEmail\Model\EventType', must be one of: 'Submission', 'FailedAttempt', 'Bounce', 'Sent', 'Open', 'Click', 'Unsubscribe', 'Complaint'"
string(2284) "#0 /var/www/project/vendor/elasticemail/elasticemail-php/lib/ObjectSerializer.php(542): ElasticEmail\ObjectSerializer::deserialize(30, '\\ElasticEmail\\M...', NULL)
#1 /var/www/project/vendor/elasticemail/elasticemail-php/lib/ObjectSerializer.php(420): ElasticEmail\ObjectSerializer::deserialize(Object(stdClass), '\\ElasticEmail\\M...', NULL)
#2 /var/www/project/vendor/elasticemail/elasticemail-php/lib/Api/EventsApi.php(235): ElasticEmail\ObjectSerializer::deserialize(Array, '\\ElasticEmail\\M...', Array)
#3 /var/www/project/vendor/elasticemail/elasticemail-php/lib/Api/EventsApi.php(163): ElasticEmail\Api\EventsApi->eventsByTransactionidGetWithHttpInfo('e8173e03-de70-8...', NULL, NULL, NULL, NULL, NULL, 'application/jso...')
#4 /var/www/project/includes/Model/ElasticEmail/ElasticEmailLogService.php(106): ElasticEmail\Api\EventsApi->eventsByTransactionidGet('e8173e03-de70-8...')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.