-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
salesforce
add request()
function
#465
Conversation
salesforce
Add request()
functionsalesforce
add request()
function
it's a JSON string request body
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of little tweaks please!
packages/salesforce/src/Adaptor.js
Outdated
* @param {String} options.method - HTTP method to use. Defaults to GET | ||
* @param {Object} [options.headers] - Object of request headers | ||
* @param {Object} [options.json] - A JSON string request body | ||
* @param {Object} [options.body] - Request body |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The body should probably have a string type here - although technically it's any body type supported by jsforce.request. So maybe no type is more appropriate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@josephjclark from jsforce, the type is String
- https://github.com/jsforce/jsforce/blob/master/lib/api/chatter.js#L60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks
Summary
Add
request(path, options, callback)
function in salesforceDetails
Using
state.connection.request()
You can now send REST API request with given HTTP request info, with connected session information.Issues
Ref #464
Review Checklist
Before merging, the reviewer should check the following items:
dev only changes don't need a changeset.