Create arbitrary POST request
See original GitHub issueAs the salesforce api continues to expand, it might be useful to create a way for nforce to make an arbitrary POST request while waiting for specific features to be supported.
Use Case: POST to generic streaming API channel.
This requires making an HTTP POST request to
/services/data/v36.0/sobjects/StreamingChannel/{channelId}/push
(where {channelId} is the salesforce ID for the generic channel).
I was able to get this to work, but I ended up using the should-be-private _apiRequest
method. I would much rather have a way to make a POST pre-packaged in the same way that getUrl
is made available for arbitrary HTTP GET requests.
I am crazy busy for the next month. If I can get back to this later, I might have a stab and make a PR. But if I post this here, maybe someone else will have a go first.
Thanks! Great lib, by the way!
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top GitHub Comments
I also added more low-level REST methods in v1.10.
@afawcett I created https://github.com/jkentjnr/nforce-actions and have only added support to date for flows: