File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -921,6 +921,29 @@ public function smtpGetEmailInfoById($id)
921
921
return $ this ->handleResult ($ requestResult );
922
922
}
923
923
924
+ /**
925
+ * SMTP: get list of unsubscribed emails
926
+ *
927
+ * @param null $limit
928
+ * @param null $offset
929
+ *
930
+ * @return mixed
931
+ */
932
+ public function smtpListUnsubscribed ($ limit = null , $ offset = null )
933
+ {
934
+ $ data = array ();
935
+ if (null !== $ limit ) {
936
+ $ data ['limit ' ] = $ limit ;
937
+ }
938
+ if (null !== $ offset ) {
939
+ $ data ['offset ' ] = $ offset ;
940
+ }
941
+
942
+ $ requestResult = $ this ->sendRequest ('smtp/unsubscribe ' , 'GET ' , $ data );
943
+
944
+ return $ this ->handleResult ($ requestResult );
945
+ }
946
+
924
947
/**
925
948
* SMTP: add emails to unsubscribe list
926
949
*
Original file line number Diff line number Diff line change @@ -267,6 +267,14 @@ public function smtpListEmails(
267
267
*/
268
268
public function smtpGetEmailInfoById ($ id );
269
269
270
+ /**
271
+ * SMTP: get list of unsubscribed emails
272
+ *
273
+ * @param null $limit
274
+ * @param null $offset
275
+ */
276
+ public function smtpListUnsubscribed ($ limit = null , $ offset = null );
277
+
270
278
/**
271
279
* Unsubscribe emails using SMTP
272
280
*
You can’t perform that action at this time.
0 commit comments