OneSignal / OneSignal-WordPress-Plugin

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

Closed nicucalcea closed 2 years ago

nicucalcea commented 2 years ago

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:

  1. Upload content through the API (POST to example.com/wp-json/wp/v2/posts). I'm personally doing it in R.
  2. I'm setting the title, description, post status, featured image, etc. in the body of the POST.
  3. 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.
rgomezp commented 2 years ago

Duplicate of https://github.com/OneSignal/OneSignal-WordPress-Plugin/issues/267