File tree Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 1+ Date 2024-04-04
2+ Version 1.9.10
3+ - Added get account information method
4+ - Fixed updateContact method src param
5+
16Date 2023-06-27
27Version 1.9.9
38- removing utf8_encode function calls deprecated in PHP 8.2
Original file line number Diff line number Diff line change 1212 */
1313class AccountService extends AbstractMaileonService
1414{
15+ /**
16+ * Get account informations
17+ *
18+ * @return MaileonAPIResult
19+ */
20+ public function getAccountInfo ()
21+ {
22+ return $ this ->get (
23+ "account/info " ,
24+ [],
25+ "application/json "
26+ );
27+ }
28+
1529 /**
1630 * Get list of all account placeholders.
1731 *
Original file line number Diff line number Diff line change @@ -495,10 +495,10 @@ public function updateContact(
495495 $ queryParameters ['permission ' ] = $ contact ->permission ->getCode ();
496496 }
497497 if (isset ($ src )) {
498- $ queryParameters ['src ' ] = $ src ;
498+ $ queryParameters ['src ' ] = urlencode ( $ src) ;
499499 }
500500 if (isset ($ subscriptionPage )) {
501- $ queryParameters ['page_key ' ] = $ subscriptionPage ;
501+ $ queryParameters ['page_key ' ] = urlencode ( $ subscriptionPage) ;
502502 }
503503 $ doiMailingKey = trim ((string ) $ doiMailingKey );
504504 if (!empty ($ doiMailingKey )) {
Original file line number Diff line number Diff line change 1- dist.version = 1.9.9
2- dist.version.stable = 1.9.9
1+ dist.version = 1.9.10
2+ dist.version.stable = 1.9.10
You can’t perform that action at this time.
0 commit comments