Skip to content

Commit 41bf176

Browse files
committed
Fix HTTP method of retrieving notification data
1 parent 9bee6ba commit 41bf176

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MailQ/Resources/NotificationResource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function sendNotificationEmail(NotificationDataEntity $notificationData,
7171
*/
7272
public function getNotificationData($notificationId, $notificationDataId)
7373
{
74-
$request = Request::post("{$this->getCompanyId()}/notifications/{$notificationId}/data/{$notificationDataId}");
74+
$request = Request::get("{$this->getCompanyId()}/notifications/{$notificationId}/data/{$notificationDataId}");
7575
$response = $this->getConnector()->sendRequest($request);
7676
return new NotificationDataEntity($response->getContent());
7777
}
@@ -84,7 +84,7 @@ public function getNotificationData($notificationId, $notificationDataId)
8484
*/
8585
public function getNotificationsData($notificationId, $email)
8686
{
87-
$request = Request::post("{$this->getCompanyId()}/notifications/{$notificationId}/history/{$email}");
87+
$request = Request::get("{$this->getCompanyId()}/notifications/{$notificationId}/history/{$email}");
8888
$response = $this->getConnector()->sendRequest($request);
8989
$data = Json::decode($response->getContent());
9090
$json = new stdClass();

0 commit comments

Comments
 (0)