diff --git a/src/Mailtrapper.php b/src/Mailtrapper.php index f6e8cd3..67970c3 100644 --- a/src/Mailtrapper.php +++ b/src/Mailtrapper.php @@ -53,7 +53,7 @@ public function getInboxes() */ public function getRawHtmlBody($inbox_id, $message_id) { - $path = '/api/v1/inboxes/'.$inbox_id.'/messages/'.$message_id.'/body.html'; + $path = 'inboxes/'.$inbox_id.'/messages/'.$message_id.'/body.html'; $url = $this->buildUrl($path); return $this->process($url); } @@ -66,7 +66,7 @@ public function getRawHtmlBody($inbox_id, $message_id) */ public function getHtmlBody($inbox_id, $message_id) { - $path = '/api/v1/inboxes/'.$inbox_id.'/messages/'.$message_id.'/body.htmlsource'; + $path = 'inboxes/'.$inbox_id.'/messages/'.$message_id.'/body.htmlsource'; $url = $this->buildUrl($path); return $this->process($url); } @@ -79,7 +79,7 @@ public function getHtmlBody($inbox_id, $message_id) */ public function getTextBody($inbox_id, $message_id) { - $path = '/api/v1/inboxes/'.$inbox_id.'/messages/'.$message_id.'/body.txt'; + $path = 'inboxes/'.$inbox_id.'/messages/'.$message_id.'/body.txt'; $url = $this->buildUrl($path); return $this->process($url); } @@ -92,7 +92,7 @@ public function getTextBody($inbox_id, $message_id) */ public function getRawBody($inbox_id, $message_id) { - $path = '/api/v1/inboxes/'.$inbox_id.'/messages/'.$message_id.'/body.raw'; + $path = 'inboxes/'.$inbox_id.'/messages/'.$message_id.'/body.raw'; $url = $this->buildUrl($path); return $this->process($url); }