Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
fetch-salesforce
Advanced tools
fetch-salesforce
is a wrapper for the Salesforce.com REST API using the Fetch API. This library was initially developed to be used in React Native projects that needed to access the Salesforce API, but it can be used in any environment that supportsfetch
.
yarn add fetch-salesforce
import { SalesforceOptions, FetchSalesforce } from "fetch-salesforce";
const options: any = {
clientID: "",
authorizationServiceURL: "",
tokenServiceURL: "",
redirectUri: "",
apiVersion: 39.0,
logLevel: "DEBUG",
};
const fetchSalesforce = new FetchSalesforce(options);
fetchSalesforce.fetchSObject
.insert("Account", {
Name: "My Account",
})
.then(res => {
console.log(res);
});
fetchSalesforce.fetchQuery
.query("SELECT ID FROM Account LIMIT 10")
.then(res => {
console.log(res);
});
... you get the idea!
fetch
Use a library like cross-fetch
to polyfill/ponyfill it:
$ yarn add cross-fetch
As a ponyfill:
import fetch from "cross-fetch";
As a polyfill:
import "cross-fetch/polyfill";
fetch-salesforce
git clone https://github.com/kidtsunami/fetch-salesforce
cd fetch-salesforce
tsc
yarn test
FAQs
A client for Salesforce using React Native friendly Fetch requests.
The npm package fetch-salesforce receives a total of 10 weekly downloads. As such, fetch-salesforce popularity was classified as not popular.
We found that fetch-salesforce demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.