summaryrefslogtreecommitdiffstats
path: root/lib/SparkPost/Resource.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SparkPost/Resource.php')
-rw-r--r--lib/SparkPost/Resource.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/SparkPost/Resource.php b/lib/SparkPost/Resource.php
index d08a388..57dfd24 100644
--- a/lib/SparkPost/Resource.php
+++ b/lib/SparkPost/Resource.php
@@ -13,14 +13,14 @@ class Resource
$this->endpoint = $endpoint;
}
- public function get($uri, $payload)
+ public function get($uri, $payload, $header)
{
- return $this->sparkpost->request('GET', $this->endpoint.'/'.$uri, $payload);
+ return $this->sparkpost->request('GET', $this->endpoint.'/'.$uri, $payload, $header);
}
- public function post($payload)
+ public function post($payload, $header)
{
echo $payload;
- return $this->sparkpost->request('POST', $endpoint, $payload);
+ return $this->sparkpost->request('POST', $this->endpoint, $payload, $header);
}
}