Nyholm
0c3b716cf2
Updated some models with PHP 7 code
2019-01-15 10:43:26 +00:00
Nyholm
0f54332d0e
CS and fixes
2019-01-12 10:34:44 +00:00
Nyholm
2ec2c16227
Added PHP7 code and did some refactoring.
2019-01-12 10:34:44 +00:00
Nyholm
2b60fba811
Moved Mailgun\Model\Route\Response
to Mailgun\Model\Route
2019-01-12 10:28:05 +00:00
David Garcia
6a943ddce3
Include missed use statements
2019-01-10 22:15:40 +00:00
David Garcia
de2902aac4
Review assets
2019-01-10 22:15:40 +00:00
David Garcia
88a9e4b1ff
Relocate files
2019-01-10 22:15:40 +00:00
David Garcia
c40fe862cc
Remove removed file
...
It was restored as part of a rebase.
Removing it again not to cause a namespace\class conflict.
2019-01-10 22:15:40 +00:00
David Garcia
f3566026b6
Remove egulias/email-validator and dependencies
2019-01-10 22:15:40 +00:00
David Garcia
5927cb162e
Add method to get access to Email Validation
2019-01-10 22:15:40 +00:00
David Garcia
961ae177fa
Add new lines to improve readability
2019-01-10 22:15:40 +00:00
David Garcia
2c98efc519
Re-order API methods by name
...
Easier to read
2019-01-10 22:15:40 +00:00
David Garcia
9f61a1e6dc
Missed annotation
2019-01-10 22:15:40 +00:00
David Garcia
39feab32e5
Remove unused use statement
2019-01-10 22:15:40 +00:00
David Garcia
f12480e313
Remove public endpoints & implement private endpoints
2019-01-10 22:15:40 +00:00
David Garcia
e90f829eb4
Add ParsePesponse
2019-01-10 22:15:40 +00:00
David Garcia
0039e26be2
Add model to map the Parse response
2019-01-10 22:15:40 +00:00
David Garcia
1fb0d0bbc5
Email Validation does not return a key name, just the resource itself
2019-01-10 22:15:40 +00:00
David Garcia
3cf9aca200
StyleCI fixes
2019-01-10 22:15:40 +00:00
David Garcia
d15dbc4f69
Extract the email address from the string
...
me@davidgarcia.cat => me@davidgarcia.cat
David Garcia <me@davidgarcia.cat> => me@davidgarcia.cat
David Garcia me@davidgarcia.cat => me@davidgarcia.cat
David me@davidgarcia.cat Garcia => me@davidgarcia.cat
2019-01-10 22:15:40 +00:00
David Garcia
756b63ef54
Provide the EmailValidator entry point to send the API requests
...
So far we just validate the provided arguments.
Waiting for @Nyholm confirmation about the best way to proceed.
Please refer to
https://github.com/mailgun/mailgun-php/issues/191#issuecomment-350133021
2019-01-10 22:15:40 +00:00
David Garcia
682d7919ad
Update error messages and provide @author annotation
...
http://docs.phpdoc.org/references/phpdoc/tags/author.html
2019-01-10 22:15:40 +00:00
David Garcia
e94334b4f1
Provide new Assert to validate an email address
2019-01-10 22:15:40 +00:00
David Garcia
77b50d3d17
Provide Validate Response
2019-01-10 22:15:40 +00:00
David Garcia
96b2242d5b
Provide model to map the Email Validation
2019-01-10 22:15:40 +00:00
David Garcia
3079b8a75c
Provide model to map the Email Validation Parts
2019-01-10 22:15:40 +00:00
Tobias Nyholm
a1ca1a3b2f
Added PHPStan test ( #537 )
...
* Added PHPStan test
This will fix #536
* Somce code style updates
2019-01-10 20:29:58 +01:00
Nyholm
750a7270e3
cs
2019-01-10 08:25:29 +00:00
Nyholm
34432e0517
Minor bugfixes detected with PHPStan
2019-01-10 08:25:29 +00:00
Nyholm
dd7c1d2361
Added new CS rules
...
Declare strict and no superfluous phpdoc
2019-01-10 08:25:29 +00:00
Nyholm
f915b103a3
cs
2019-01-09 20:51:05 +00:00
Nyholm
b619b66732
Adding tag aggregates
2019-01-09 20:51:05 +00:00
Tobias Nyholm
b725ab728e
Adding PHP7 type annotations ( #523 )
...
* Adding PHP7 type annotations
* cs
* Moved HttpClientConfigurator and RequestBuilder to Mailgun\HttpClient namespace
* fixing tests
* Rebased and fixed tests
* minors
* cs
* Bugfixes
* Typo
2019-01-09 20:18:58 +01:00
Tobias Nyholm
538ea52b37
Removed "final" for classes with known sub-classes ( #520 )
2019-01-07 06:15:44 +01:00
Tobias Nyholm
519fd7a674
Added proper PHP CS fixer rules ( #527 )
...
* Added proper PHP CS fixer rules
* Adding Symfony cs rules
* Updated CS on tests
2019-01-07 06:12:53 +01:00
Tobias Nyholm
e341a44a5c
Removed deprecated code ( #521 )
...
* Removed deprecated code
* cs
* Removed more deprecated code
* minor
2019-01-06 10:07:06 +01:00
Matěj Humpál
12fee2f714
MessageBuilder setters entirely fluent ( #507 )
2019-01-06 10:06:52 +01:00
Tobias Nyholm
1bcce53387
Use PSR-4 ( #517 )
2019-01-06 08:34:49 +01:00
Tobias Nyholm
7020c01cca
Make all model constructors private ( #512 )
2019-01-06 08:14:07 +01:00
Tobias Nyholm
e32031f671
Make all models final ( #513 )
2019-01-06 08:13:29 +01:00
Tobias Nyholm
da5ccde2a7
Adding support for Mailing list ( #514 )
...
* Adding Mailing list API
* Added tests
* cs
* Fixed the tests
* code cleanup
2019-01-06 08:11:37 +01:00
Tobias Nyholm
56655ad6c0
Added IP API class, models and test ( #515 )
...
* Added IP API class, models and test
* cs
* bugfix
2019-01-05 20:31:38 +01:00
Tobias Nyholm
c0a386027b
Added more tests for models ( #511 )
...
* Added more tests for models
* cs
2019-01-05 20:30:55 +01:00
Tobias Nyholm
09113482ea
Added "complaints" to TotalResponse ( #509 )
2019-01-05 19:56:55 +01:00
Paul R Rogers
02e3191bc9
Change exception message of HttpClientException when badRequest to us… ( #466 )
...
* Change exception message of HttpClientException when badRequest to use server content's message to aid resolving problems with user input.
* style(HttpClientException): Removed space to comply with styleCI.
* Fix missing assoc flag.
* Refactor to reuse constructor parsing when passing along server error.
Add tests covering passing along of server message.
* Updated tests
* cs
* bugfix
2019-01-05 12:52:40 +01:00
Matias Barletta
07da83776a
fix: Validate file name length ( #463 )
...
* fix: Validate file name length
$message could contain a large email text that if sent to is_file it could break with this error:
` is_file(): File name is longer than the maximum allowed path `
This validation prevents using is_file if the $message is longer than the allowed path.
* style: Fix extra space
* Added a small test
* cs
* cs
2019-01-05 12:44:50 +01:00
David Garcia
ce641a6846
Prepare for 2.7.0 ( #481 )
...
* Prepare for 2.7.0
* Remove `declare(strict_types=1)`
* Remove missed `declare(strict_types=1)`
2019-01-05 08:24:22 +01:00
Tobias Nyholm
d4e4d4efbe
Close open resources ( #473 )
...
* Make sure to close any open resources
* Fixed test
2019-01-05 08:23:41 +01:00
Matěj Humpál
80a82508c7
Added deprecated notices to non-fluent MessageBuilder setters ( #505 )
2019-01-03 12:16:01 +01:00
Matěj Humpál
5398e0ad9c
Added throws RuntimeException annotation to BatchMessage ( #506 )
2019-01-03 11:38:58 +01:00
Matěj Humpál
54aa0a7553
Fluent interface for MessageBuilder and BatchMessage
2019-01-03 09:56:56 +00:00
Arliee
1f5bd4200d
Fix type error when creating tags ( #501 )
...
* Fix fatal error due to not using DateTime instead of string when creating a tag.
* Add unit tests to prove tag creation.
* Add unit tests to prove tag creation.
* Add first seen and last seen accessors to tags, and unit tests to prove correctness.
2019-01-03 10:55:24 +01:00
Ruud Kamphuis
3fb0f8210e
MessageBuilder > addBccRecipient > Make $variables optional ( #485 )
...
This way, it's the same as `addToRecipient` and `addCcRecipient`
2018-09-07 22:37:59 +02:00
Tobias Nyholm
a4aba16061
Added a way to get attachments ( #476 )
...
* Added a way to get attachments
* Added some tests
* cs
* minor
* Removed declare_strict
* Typos
* Bugfixes
* Fixed bugs
2018-08-09 18:59:38 +02:00
Nyholm
94d0406bcc
FIXED A BUG!
2018-08-08 20:50:52 +01:00
Nyholm
2337184f85
Added docs
2018-08-08 20:49:30 +01:00
Nyholm
860d49d9d2
Add endpoint to the create function
2018-08-08 20:49:30 +01:00
Nyholm
fa30639f99
Added complaint test
2018-08-08 20:48:35 +01:00
Tobias Nyholm
eb07576e6a
Ported MessageBuilder and BatchMessage ( #472 )
...
* Ported MessageBuilder and BatchMessage
* Added test for MessageBuilder
* Added test for BatchMessageTest
* cs
* cs
* Removed PHP7 code
2018-08-04 21:30:15 +02:00
Radoje Albijanic
83c5f76f87
Cast campaign ID-s to string ( #460 )
...
* 413 error proper handle.
* Cast campaign id-s to string. Added tests for that.
* Style fixes
2018-04-09 18:51:09 +02:00
Radoje Albijanic
e28065fe2e
413 error proper handle.
2018-04-08 11:16:19 +01:00
Quentin
869eff42e1
style: Fix coding style.
2018-02-01 22:42:12 +00:00
Quentin
8e5420d78a
chore(unsubscribe): Remove dead code.
2018-02-01 22:42:12 +00:00
Quentin
ce2bd4b0f1
feat(unsubscribe): Handle tags in Unsubscribe v3 api.
2018-02-01 22:42:12 +00:00
David Joos
83800d7486
Fix typo ( #441 )
...
sill > still
2018-01-29 17:18:02 +01:00
Tobias Nyholm
78b05dc58e
Apply fixes from StyleCI ( #426 )
2017-12-07 22:53:16 +01:00
Ángel Guzmán Maeso
b415076e45
Implement getTotalCount and add doc descriptions ( #393 )
...
* Implement getTotalCount and add doc descriptions
* Use camelCase and store in private var
* Removed extra calls to count()
2017-12-07 22:34:47 +01:00
Tobias Nyholm
2078321504
Make sure we do not instantiate an abstract class. ( #424 )
2017-12-07 22:05:43 +01:00
Eugene Storchevoy
2412efd1a2
cleanup_duplication: moved duplications to abstract class.
2017-12-06 22:09:58 +00:00
François-Xavier de Guillebon
b73adaf60c
Fixed stats retrieval ( #384 )
...
* [Stats] Fixed stats always empty
* Added tests
2017-12-01 21:10:21 +01:00
Tobias Nyholm
6dfd2b5a18
Update .travis.yml and fix style ( #414 )
...
* Update .travis.yml
* syntax fix
* Apply fixes from StyleCI (#415 )
* Syntax fix
2017-12-01 20:55:29 +01:00
Ángel Guzmán Maeso
1fd4f222e6
Update POST domain/create with optional params ( #399 )
...
According to issue #397 the stmp params are optionals in the creation of a domain
2017-11-22 09:47:57 +01:00
SeanJA
fa02dd4fdb
fixed typo ( #411 )
...
splitted => split
2017-11-22 09:37:38 +01:00
Hannes Magnússon
ce484ecbc8
Grammar typo ( #413 )
...
* Grammar typo
* Fixed style errors as reported by styleci
2017-11-22 09:37:04 +01:00
Alan Aasmaa
ede13bd24c
Removed unnecessary new lines ( #403 )
...
It feels a bit cleaner to me like this.
2017-10-16 09:45:36 -07:00
Jeppler
253bce7789
Fix for deprecation message for sendMessage()
( #383 )
...
The `sendMessage()` method will be replaced by `Mailgun->messages()->send()` see issue #383
2017-08-16 18:37:06 +02:00
Stefan Natter
8ebaa6676f
Updated EXCEPTION_MISSING_ENDPOINT and README accordingly ( #373 )
...
* Updated EXCEPTION_MISSING_ENDPOINT and README accordingly
* Updated HttpClientException
* reuse existing ExceptionMessages constants
* removed ExceptionMessages constants again
2017-07-13 09:36:36 +02:00
Oleksii Rytov
ee35e40846
fix to index webhooks method ( #372 )
2017-06-28 11:25:11 +02:00
Sean Johnson
273b48343d
Expose response code from HttpClientException ( #371 )
2017-06-24 07:46:48 +02:00
maximzasorin
e800038f21
Add domain verification ( #370 )
2017-06-22 19:35:42 +02:00
maximzasorin
8187a47fa0
Add cached property for DNS record ( #368 )
2017-06-21 20:10:47 +02:00
maximzasorin
f58c5914ae
Fix DNS record validation ( #365 )
2017-06-20 21:56:09 +02:00
Tobias Nyholm
487c1edd77
Prepare for release 2.3.2 ( #352 )
...
* Style fixes
* Added changelog
2017-05-16 15:20:33 +02:00
Tobias Nyholm
91f96bad3e
Show that the constructor is deprecated ( #347 )
2017-05-16 14:51:25 +02:00
Alexandre Dupuy
d504472206
fix: named addresses must be surrounded by double quotes ( #349 )
...
* fix: named addresses must be surrounded by double quotes
Due to your recent API update, named addresses with special chars (like parentheses) are now rejected if they are surrounded by simple quotes
They must be surrounded by double quotes
'Whoever (SomeCompany)' <some@address.com> is no longer valid and will be rejected by your API
"Whoever (SomeCompany)" <some@address.com> is valid and will be OK
* sprintf instaead of old school concatenation
2017-05-16 14:51:02 +02:00
Tobias Nyholm
089f32d746
Make sure to reset the multipartStreamBuilder ( #351 )
2017-05-11 17:52:04 +02:00
Tobias Nyholm
d4ab1b0a87
Support mime messages ( #341 )
...
* Support mime messages
* cs
* Removed pointless integration tests
* typo
* Create new endpoint for message.mime
* cs
* Added docs
* Doc fixes
* Refactor
2017-04-14 10:31:13 +02:00
z38
edcfcc397f
Add integration tests for Route API ( #334 )
2017-04-08 10:34:57 +02:00
Tobias Nyholm
7665700b00
Implemented a way to verify webhook signature ( #325 )
...
* Implemented a way to verify webhook signature
* CS
2017-04-07 18:29:20 -05:00
z38
b713364dc0
Fix integration tests for domain API ( #294 )
...
* Send multipart/form-data requests by default
* Fix integration tests for Domain API
2017-04-07 18:24:48 -05:00
z38
0bc0a3b1a5
Fix disordered POST parameters ( #279 )
2017-04-07 18:24:37 -05:00
Tobias Nyholm
ae9ee585a2
Fixing broken suppression API ( #332 )
...
* Fixing broken suppression API
* cs
2017-04-07 22:09:59 +02:00
Tobias Nyholm
27d13d85fd
Updated function parameters ( #333 )
...
* Updated function parameters
* cs
2017-04-07 21:52:30 +02:00
Tobias Nyholm
f73445726f
Fixed typo in namespace ( #330 )
2017-04-07 21:31:57 +02:00
Tobias Nyholm
1fa199ddf1
Removed old pagination methods ( #329 )
2017-04-07 21:30:44 +02:00
Tobias Nyholm
0f5440c368
Fix new constructor ( #314 )
...
* Bugfix
* Updated docs
* cs
2017-03-26 13:42:36 -05:00
z38
1e00e8853e
Remove unused error response class ( #319 )
2017-03-26 17:28:09 +02:00
Tobias Nyholm
bc5215090d
Renamed DeserializeException to HydrationException ( #317 )
2017-03-26 17:27:47 +02:00
Tobias Nyholm
70d467955a
Make error responses accessable ( #312 )
2017-03-26 17:26:57 +02:00
Tobias Nyholm
511ad186ce
Adding attachments and content id map ( #316 )
2017-03-26 16:42:12 +02:00