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.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/SparkPost/Resource.php b/lib/SparkPost/Resource.php
deleted file mode 100644
index 9f59d27..0000000
--- a/lib/SparkPost/Resource.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace SparkPost;
-
-class Resource
-{
- protected $sparkpost;
- protected $endpoint;
-
- public function __constructor(SparkPost $sparkpost, $endpoint)
- {
- $this->sparkpost = $sparkpost;
- $this->endpoint = $endpoint;
- }
-
- public function get($uri, $payload)
- {
- return $this->sparkpost->request('GET', $this->endpoint.'/'.$uri, $payload);
- }
-
- public function post($payload)
- {
- echo $payload;
- return $this->sparkpost->request('POST', $endpoint, $payload);
- }
-}