summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Optional automatic retry on 5xxEwan Dennis2017-07-051-4/+37
|
* Merge pull request #149 from zaporylie/patch-2rajumsys2017-03-081-0/+8
|\ | | | | Setters should return current object.
| * Setters should return current object.Jakub Piasecki2016-10-131-0/+8
| |
* | updated version in SparkPost classAvi Goldman2017-01-071-1/+1
| |
* | added default for request param in SparkPostResponse and SparkPostExceptionAvi Goldman2017-01-043-3/+3
| |
* | added back in buildRequest as a single functionAvi Goldman2017-01-041-3/+16
| |
* | ran fix styleAvi Goldman2017-01-046-23/+24
| |
* | added functions in error and response for getting out the request in debug modeAvi Goldman2017-01-042-2/+34
| |
* | pass request through to response or errorAvi Goldman2017-01-041-7/+16
| |
* | broke building request values into their own func and added debug optionAvi Goldman2017-01-041-9/+40
| |
* | Fix #150: Rename Resource to ResourceBase and leave deprecation notezaporylie2016-10-133-83/+99
|/
* Updating examples (#139)Avi Goldman2016-08-251-11/+13
| | | | | | | | | | | | | | | | * added example of getting transmission by ID * updated example messages and added example with recipient list and template * fixed lib to work with recipient lists * fixed lib to work with recipient lists * added test covering recipient list * added message event example * added template examples
* Remove form feeds (Fix #141).eiriksm2016-08-241-1/+7
|
* added php-http/message as dependencyAvi Goldman2016-07-281-1/+1
|
* Bump version, update changelog2.0.2Avi Goldman2016-07-281-1/+1
|
* Remove dependency from Guzzle (#131)Tobias Nyholm2016-07-271-11/+46
| | | | | | | | | | * Remove dependency form Guzzle * Fixed borken tests * Added more tests * make sure we require httplug as well.
* Fix phpdocAnatoly Pashin2016-07-251-1/+1
|
* Bump version, update changelog2.0.1Rich Leland2016-06-291-7/+7
|
* transmission: makes "from" address optionalConrad Kleinespel2016-06-291-1/+3
|
* getting rid of rold optionsAvi Goldman2016-06-231-1/+0
|
* fixed examples, and small detailsAvi Goldman2016-06-233-10/+10
|
* formatting and commentsAvi Goldman2016-06-225-55/+54
|
* wrote tests to cover Resource and Transmission classesAvi Goldman2016-06-211-1/+1
|
* grouped formatting functions into a single 'formatPayload' functionAvi Goldman2016-06-211-2/+15
|
* set param defaults in resource classAvi Goldman2016-06-211-4/+4
|
* fixed error thrown in toAddressObject functionAvi Goldman2016-06-211-2/+1
|
* added comments and fixed BCCAvi Goldman2016-06-213-6/+108
|
* added transmission in sparkpost class. Refactored code in Transmission.phpAvi Goldman2016-06-212-127/+85
|
* merged in 2.xAvi Goldman2016-06-204-94/+231
|\
| * Merged FAD-3148 into 2.xAvi Goldman2016-06-2010-888/+378
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * FAD-3148 basic non-functioning base class * FAD-3148 a bit more functionality in the base class * FAD-3148 added custom promise class and custom response class. Did good things to SparkPost class * Updated Transmission.php for new refactor, still WIP. Created Resource.php as a parent class for all future resources. * Removed test functions * Cleaned up Transmissions.php according to PSR-2, deleted more test code and comments. * added sync and aysnc, cleaned up code * added support for async/sync option * added support for async/sync option * Added interns to authors * simplified the request function * added comments * added user agent * added comments in SparkPostPromise * added comments in SparkPostException * added comments in SparkPostResponse * cleaning up test * updated composer.json and contributing files for testing * Ran php-cs-fixer * testing for sparkpost response class * updated to newer version of guzzle * updated to newer version of guzzle * Cleaned up getUrl and other functions * cleaned up constructor and overrode getCode with getResponse()->getStatusCode() * fixed up then method * cleaned up getBody * deleted old test * Wrote total coverage tests for SparkPost class * commented out setting up transmissions endpoint until merging with FAD-3146
* | added put and delete methods along with request function to handle case with ↵Avi Goldman2016-06-171-4/+28
| | | | | | | | no uri with a payload
* | Deleted test code, irrelevant comments, and fixed up code.Vincent Song2016-06-152-18/+10
| |
* | Added parser to change shorthand recipients to array of name and address, ↵Vincent Song2016-06-142-2/+68
| | | | | | | | wherever possible
* | BCCs and CCs now send properlyVincent Song2016-06-131-19/+18
| |
* | Sending works, cc/bcc headers don't.Vincent Song2016-06-133-10/+12
| |
* | WIPVincent Song2016-06-109-784/+273
|\ \
| * | added support for async/sync optionAvi Goldman2016-06-101-2/+2
| | |
| * | added support for async/sync optionAvi Goldman2016-06-101-2/+12
| | |
| * | Merge remote-tracking branch 'origin/FAD-3146' into FAD-3148Avi Goldman2016-06-101-0/+1
| |\ \
| * | | added sync and aysnc, cleaned up codeAvi Goldman2016-06-105-75/+173
| | | |
| * | | FAD-3148 added custom promise class and custom response class. Did good ↵Avi Goldman2016-06-107-536/+118
| | | | | | | | | | | | | | | | things to SparkPost class
| * | | FAD-3148 a bit more functionality in the base classAvi Goldman2016-06-091-8/+14
| | | |
| * | | FAD-3148 basic non-functioning base classAvi Goldman2016-06-093-387/+43
| | |/ | |/|
* | | WIPVincent Song2016-06-101-45/+0
| | |
* | | Minor bug fixVincent Song2016-06-101-9/+3
| | |
* | | fixed minor bugVincent Song2016-06-101-1/+45
| | |
* | | Resource.post and get now accepts CC headers which are generated in the ↵Vincent Song2016-06-102-19/+24
| | | | | | | | | | | | fixCarbonCopy() method
* | | No more CC header section if there's no CCVincent Song2016-06-101-2/+5
| | |
* | | Minor bugfixesVincent Song2016-06-102-11/+12
| | |
* | | it wont break anymore if there's no CC or BCC, and also added return to ↵Vincent Song2016-06-101-1/+1
| | | | | | | | | | | | Transmissions->post()
* | | It won't break anymore if there's no CC or BCCVincent Song2016-06-101-21/+26
| |/ |/|
* | Cleaned up Transmissions.php according to PSR-2, deleted more test code and ↵Vincent Song2016-06-101-116/+30
| | | | | | | | comments.
* | Removed test functionsVincent Song2016-06-101-4/+0
| |
* | Updated Transmission.php for new refactor, still WIP. Created Resource.php ↵Vincent Song2016-06-102-118/+196
|/ | | | as a parent class for all future resources.
* Bump version, update changelogRich Leland2016-05-271-1/+1
|
* Added a timeout option to overwrite the default 10 seconds built into the ↵Ryan2016-05-191-0/+2
| | | | default configuration
* Bump version, update changelog1.2.0Rich Leland2016-05-041-1/+1
|
* Add php-cs-fixer as composer script and make initial fix-style runJason Rhodes2016-05-037-762/+882
| | | | | | * Add php-cs-fixer as composer script * Make initial fix-style run * Fix indentation on all files * Add editorconfig file
* Return extended exception dataRichard Leland2016-05-031-2/+9
| | | | | | | | | * Update examples to show available extra exception methods * Resolves #83 * Update 403s to pass back extended exception data Fixes #83
* Remove reliance on composerRichard Leland2016-05-031-5/+6
| | | | - Some users don't use composer and the code required the composer.json - Resolves #95
* Merge pull request #69 from j4m3s/ISSUE-58Jordan Nornhold2016-05-024-2/+77
|\ | | | | Message Events
| * Rename MessageEvent to plural, update docblocks.James Fellows2016-04-262-4/+12
| |
| * Reformat Transmission code linesJames Fellows2016-04-241-4/+2
| |
| * Add explanation to APIResource query param implodingJames Fellows2016-04-241-0/+1
| |
| * Add unit tests for Message Events::documentation and ::samplesJames Fellows2016-04-041-3/+3
| |
| * Add tests for new MessageEvent DateTime handlingJames Fellows2016-04-042-3/+30
| |
| * Message Event mocked tests passJames Fellows2016-04-032-12/+30
| |
| * Initial commit adding MessageEvent supportJames Fellows2016-03-312-0/+16
| |
| * Allow startTime param to be a DateTime objectJames Fellows2016-03-291-1/+8
| |
* | Update key validationLF Bittencourt2016-04-221-1/+1
| | | | | | Fixes #75
* | Improve Exception message on 403 response (#71)James Fellows2016-04-191-0/+3
|/ | | Fixes #70.
* Merge pull request #56 from SparkPost/ISSUE-45Jordan Nornhold2016-03-141-21/+31
|\ | | | | Additional options for transmissions
| * Sort parameter mappingsRich Leland2016-03-121-31/+31
| |
| * Add transmission optionsRich Leland2016-03-121-2/+12
| |
* | Merge pull request #51 from zaporylie/feat/customize-api-response-exceptionRichard Leland2016-03-132-8/+62
|\ \ | |/ |/| Improve APIResponseException class
| * Rename tozaporylie2016-03-131-7/+7
| |
| * Improve APIResponseException classJakub Piasecki2016-03-082-8/+62
| |
* | Add support for inline imagescchandon2016-03-111-0/+1
| |
* | Add missing support for attchmentsJakub Piasecki2016-03-081-0/+1
|/
* removed test, because it's not needed after added strong-typing to the ↵danil zakablukovskii2016-02-286-238/+158
| | | | 'setHttpAdapter' method
* clean lib codedanil zakablukovskii2016-02-276-213/+287
| | | | | | | removed @desc tag, since it doesn't exist in phpdoc fixed comments fixed namespaces added strong-typing for some methods
* Updated concatenations to have spacesJordan Nornhold2016-02-251-2/+2
|
* added new exception type and unwrapped example for webhooksbeardyman2016-02-231-0/+9
|
* added logic to handle error responsesbeardyman2016-02-231-12/+19
|
* Changed gettype() to is_string()beardyman2015-10-141-1/+1
|
* Added ability to pass in api key as a configbeardyman2015-10-101-7/+9
|
* Merged masterbeardyman2015-10-105-573/+636
|\
| * removed unhittable code and removed a unit test for it. Updated code ↵beardyman2015-10-072-13/+2
| | | | | | | | coverage filters in phpunit.xml to ignore test files because a utility function wasn't being used
| * replaced tabs with two spaces. normalized quotesbeardyman2015-10-035-433/+433
| |
| * Removed all tabs and replaced them with two spacesbeardyman2015-10-025-5/+5
| |
| * Updated tests for new structurebeardyman2015-09-302-1/+6
| |
| * moved config setup and management back into the sparkpost objectbeardyman2015-09-282-104/+123
| |
| * Finished tests and docsbeardyman2015-09-251-15/+34
| |
| * started cleaning up tests to reflect the new changesbeardyman2015-09-221-22/+0
| |
| * Removed most static methods and adopted an instance based implementation. ↵beardyman2015-09-174-185/+209
| | | | | | | | Updated all examples and compatibility later to reflect these changes.
| * finished code updates/refactoring updated examples and began refactoring testsbeardyman2015-09-162-61/+78
| |
| * Refactored to use http adapter instead of guzzle directlybeardyman2015-09-153-137/+148
| |
* | added check to see if an api key is passed in instead of a config objectbeardyman2015-10-041-14/+20
|/
* Fixed failing unit test - added ability to unset configmapril2015-09-021-0/+4
|
* added base object, test and examplemapril2015-08-211-0/+216
|