Home Forums Newsletter Plugin Support Forum Use of REST API Subscription DOI

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #193192
    riomigal
    Participant

    Hi

    I am trying to install to use the rest API, this code is working to add the user directly into the database, without DOI.
    What I have to do to change so that the user will first receive the confirmation email?

    Thank you!!!
    Kind regards
    Saverio

    <form action=”https://www.mydomain.com/wp-content/plugins/newsletter-api/add.php?nk=key&#8221; method=”post”>
    Name: <input type=”text” name=”name”><br>
    E-mail: <input type=”email” name=”ne”><br>
    <input type=”text” name=”status”>
    <input type=”submit” value=”submit”>
    </form>

    #193867
    Stefano
    Keymaster

    Hi, the add API is reserved to server-to-server use otherwise you expose your secret api key! You should use the subscribe endpoint as explained in our documentation and, more, the add.php is a legacy file which is there only for compatibility, don’t use it.

    Stefano.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.