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?