magento2-newsletter-api

所属分类:Pascal/Delphi编程
开发工具:PHP
文件大小:0KB
下载次数:0
上传日期:2021-01-02 19:51:03
上 传 者sh-1993
说明:  用于Magento新闻稿模块的REST API层增加了4个额外的方法,允许列出和管理Magento订阅...
(REST API Layer for Magento Newsletter module adds additional 4 methods which allow to list and manage Magento subscribers.)

文件列表:
Api/ (0, 2021-01-02)
Api/Data/ (0, 2021-01-02)
Api/Data/SubscriberInterface.php (1237, 2021-01-02)
Api/Data/SubscribersSearchResultsInterface.php (507, 2021-01-02)
Api/SubscriberManagementInterface.php (1243, 2021-01-02)
COPYING.txt (243, 2021-01-02)
LICENSE.txt (10237, 2021-01-02)
Model/ (0, 2021-01-02)
Model/Subscriber.php (2533, 2021-01-02)
Model/SubscriberManagement.php (3425, 2021-01-02)
Model/SubscribersSearchResults.php (449, 2021-01-02)
Test/ (0, 2021-01-02)
Test/Integration/ (0, 2021-01-02)
Test/Integration/EndpointTest.php (3724, 2021-01-02)
composer.json (514, 2021-01-02)
etc/ (0, 2021-01-02)
etc/acl.xml (714, 2021-01-02)
etc/di.xml (570, 2021-01-02)
etc/module.xml (275, 2021-01-02)
etc/webapi.xml (1364, 2021-01-02)
registration.php (152, 2021-01-02)

# Magento2 API Endpoint for Newsletter module albedo/module-newsletter-api ### Description REST API Layer for Magento Newsletter module adds additional 4 methods which allow to list and manage Magento subscribers. Somehow, Magento Newsletter doesn't provide these methods out of the box, while they might be useful for 3rd party integrations with ESPs or other marketing software. Read more on: https://karnowka.com/posts/magento2-newsletter-api/ *Features:* - Possibility to get list using `searchCriteria` - Possiblity to subscribe/confiirm/unsubscribe using REST - Separate ACL rules for read/write permissions When e-mail is subscribed, it will trigger/dispatch all observers and send e-mail to customer. It is equivalent to subscribe with normal form (same Magento methods used). API Reference (Postman): https://documenter.getpostman.com/view/4376907/TVsxCSUj You can run tests by executing: ```$xslt php ../../../vendor/bin/phpunit ../../../app/code/Albedo/NewsletterApi/Test/* -c ../api-functional/phpunit_rest.xml ``` Make sure to have `api-functional/phpunit_rest.xml` properly configured! *Roadmap*: - possibility to send multiple contacts in one requests - deleting subscribers ### Installation Install the module composer by running `composer require albedo/module-newsletter-api` Enable the module by running `php bin/magento module:enable Albedo_NewsletterApi` Apply database updates by running `php bin/magento setup:upgrade` Flush the cache by running `php bin/magento cache:flush`

近期下载者

相关文件


收藏者