Home Forums Newsletter Plugin Support Problem getting API v2 to work

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #354579
    James LeDoux
    Participant

    I have the API addon installed, created the keys, and can’t get a curl request to work. I’ve tried a lot of different things suggested by CoPilot, but nothing’s working. One I’ve tried as a test, with the real keys where ‘xxxx’ is:

    curl "https://www.humortimes.com/wp-json/newsletter/v2/subscribers?X-TNP-KEY=xxxxx&X-TNP-SECRET-KEY=xxxx" -X POST -H "Content-Type: application/json" -d '{"email":"test@example.com"}'

    What are the correct key handles to use? I got X-TNP-KEY and TNP-SECRET-KEY from another post here, but have tried many other things, like api-key and api-secret, X-Api-Key and X-Api-Secret, etc.

    What is the correct syntax for connecting with the API?

    #354580
    James LeDoux
    Participant
    #354647
    Michael
    Keymaster

    Hello James,

    glad you’ve found it : )

    Michael

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