OneSignal is a free push notification service for web and mobile apps. This plugin makes it easy to integrate your website with OneSignal Push Notifications. https://onesignal.com
Other
78
stars
42
forks
source link
Changing notification settings through the WordPress REST API #290
I'm publishing content through the WordPress REST API. I would like to toggle the "Send notification on post publish" checkmark on a per-post basis, but I can't see a way to do that through the API.
Steps to Reproduce Issue:
Upload content through the API (POST to example.com/wp-json/wp/v2/posts). I'm personally doing it in R.
I'm setting the title, description, post status, featured image, etc. in the body of the POST.
However, I don't know how to customise any of the onesignal settings in the body of the POST or in any other programmable way.
Description:
I'm publishing content through the WordPress REST API. I would like to toggle the "Send notification on post publish" checkmark on a per-post basis, but I can't see a way to do that through the API.
Steps to Reproduce Issue:
POST
toexample.com/wp-json/wp/v2/posts
). I'm personally doing it in R.POST
.POST
or in any other programmable way.