Skip to content

WordPress endpoint that inserts a post, fires a OneSignal push notification and sends a BlueShift email

License

Notifications You must be signed in to change notification settings

suchm/WP-Insert-Email-Push-Post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}"
}

About

WordPress endpoint that inserts a post, fires a OneSignal push notification and sends a BlueShift email

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published