Skip to content

Commit

Permalink
Fixing bug with wrong API paths
Browse files Browse the repository at this point in the history
  • Loading branch information
david4bexio committed Dec 20, 2018
1 parent 782df55 commit 28a6225
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mailtrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 28a6225

Please sign in to comment.