summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJames Fellows <james.fellows@finanscapes.com>2016-04-04 23:20:07 +0100
committerJames Fellows <james.fellows@finanscapes.com>2016-04-04 23:20:07 +0100
commit0a3035c4bd322a8c88313ab93deda0ac032e7f95 (patch)
treedfe41bc92649066fcc4dfe8f12421dab6a2bcac7 /lib
parent03c0f363fc17e555583b32b8a0ff7f73f9b46d20 (diff)
downloadphp-sparkpost-0a3035c4bd322a8c88313ab93deda0ac032e7f95.zip
php-sparkpost-0a3035c4bd322a8c88313ab93deda0ac032e7f95.tar.gz
php-sparkpost-0a3035c4bd322a8c88313ab93deda0ac032e7f95.tar.bz2
Add unit tests for Message Events::documentation and ::samples
Diffstat (limited to 'lib')
-rw-r--r--lib/SparkPost/MessageEvent.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/SparkPost/MessageEvent.php b/lib/SparkPost/MessageEvent.php
index e770642..d2fe11c 100644
--- a/lib/SparkPost/MessageEvent.php
+++ b/lib/SparkPost/MessageEvent.php
@@ -44,9 +44,9 @@ class MessageEvent extends APIResource
}
/**
- * List an example of the event data that will be included in a response from the MessageEvent::search() method.
+ * List examples of the event data that will be included in a response from the MessageEvent::search() method.
*/
- public function samples() {
- return $this->get("events/samples", ["events" => "bounce"]);
+ public function samples(Array $events) {
+ return $this->get("events/samples", ["events"=>$events]);
}
} \ No newline at end of file