• mhasli

    (@mhasli)


    We want to integrate a interface between MailPoet and an external service. Therefore we transfer mail information and contactinformation to the MailPoet plugin and are going to receive the results (click rate, …) after doing a mailing via MailPoet.

    We read the documentation based on github but do not know how to autneticate using rest API functionality. Do anyone know how to do so? Or ist the plugin only acessable via functionallity within the wordpress page?

    Best regards

    mhasli

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello there @mhasli ,

    Thank you for your interest in integrating an external service with MailPoet through our API. I totally understand the importance of seamless integration to facilitate the transfer of mail and contact information, as well as to retrieve campaign performance metrics like click rates.

    Based on the documentation for developers, MailPoet provides a PHP class-based API for managing subscribers, which is the officially supported method for integration. However, as per the documentation available on our GitHub repository, there isn’t a REST API provided by MailPoet directly. Our API is accessible via the WordPress environment and is intended to be used by plugins or themes that operate within that same environment.

    To utilize MailPoet’s API for subscriber management and other listed functionalities, you’d need to instantiate the MailPoet API within your WordPress code as shown:

    if (class_exists(\MailPoet\API\API::class)) {    $mailpoet_api = \MailPoet\API\API::MP('v1');}

    Once instantiated, the \MailPoet\API\API class provides access to various methods, such as adding subscribers, managing lists, and retrieving subscriber counts. For handling subscriber and campaign data, you’ll interact with these methods using PHP within the WordPress context.

    To integrate with an external service and for the data transfer related to campaign results like click rates, this would generally have to be handled on your own. This might involve:

    • Custom development to interface your external service with the WordPress database and the specific MailPoet tables where campaign data is stored.
    • Setting up authenticated API endpoints on your external service that can receive push notifications or poll for campaign metrics from your WordPress database.

    For detailed usage examples, you can check some basic examples here.

    To provide the most accurate and helpful advice on integration, could you please let us know more about the external service you’re planning to integrate and the specific objectives you intend to achieve? This additional information will allow us to understand your needs better and potentially offer a more tailored solution.

    We are committed to helping you create a seamless connection between MailPoet and your external service. Please do not hesitate to reach out if you need further assistance or clarification.

    Looking forward to hearing back from you.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin MailPoet: received data from external system’ is closed to new replies.