Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 598 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 598 Bytes

WordPress Endpoint - Insert Post, push notification, send email

The code in this repository is responsible for inserting a WordPress post, sending a BlueShift email and firing a OneSignal push notification all via one endpoint.

Endpoint requirements

  • URL: https://{website_name}/wp-json/insert-email-push-post/v1/initiate
  • Request: POST
  • Headers:
Authorization: base64_encode(trim(IEPP_AUTH_KEY, " "))
Content-Type: application/json
  • Body:
{
    "title": "{title}",
    "content": "{content}",
    "author": "{author}",
    "footer": "{footer}"
}