Closed dkoon777 closed 6 years ago
There is currently not first-class support for pushing events right now. I did, however, add low-level REST methods that you can use. Prior there was only a getUrl()
method but now there is a putUrl()
, postUrl()
, 'deleteUrl()` methods.
Something like this should work
org.postUrl({
url: '/services/data/v41.0/sobjects/StreamingChannel/0M636000000PAswCAG/push',
body: { .... }
})
Happy to entertain a pull request to make pushing to event topics first-class. In the meantime, if you upgrade to the latest nforce you'll get these new methods.
Your ApexRest API only handles /services/apexrest/.. kind of endpoint, I need to communicate to /services/data/v41.0/sobjects/StreamingChannel/0M636000000PAswCAG/push endpoint, how?