
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
xtuple-rest-client
Advanced tools
xTuple ERP Node.js REST API Client Library using the Google APIs Client Library for Node.js. For more information about xTuple's web application, look at the source code.
Before you can use this client with xTuple's OAuth 2.0 Server, you need to install the OAuth 2.0 extension in your xTuple application and create a reference for a new OAuth 2.0 Client. Be sure to select a "Client Type" of "Service Account" and ensure that "Delegated Access" is checked. This will generate a private key and give you all the other information that you wll need to connect to the xTuple REST API.
Clone this repository and run npm install
or npm install xtuple-rest-client
Convert your key.p12 file to key.pem and copy it to the keys
folder:
openssl pkcs12 -in keys/key.p12 -nocerts -nodes | openssl rsa -out keys/key.pem
This key and the folder are in the .gitignore and should never be committed to source control.
Enter Import Password: 'notasecret'
cp sample.env .env
Open the .env file and change the information to match what was provided by the xTuple OAuth 2.0 extension. This .env file should also never be committed to source control.
var _ = require('underscore'),
Client = require('xtuple-rest-client');
new Client(function (client) {
client.query({
type: 'ToDo',
method: 'list',
params: { maxResults: 50 },
callback: function (err, result) {
if (err) {
console.log('Error:', err);
}
if (result) {
console.log('To Dos:');
_.map(result.data.data, function (obj) {
console.log('Id:', obj.uuid);
console.log('Name:', obj.name);
console.log('Description:', obj.description);
});
}
}
});
});
Copyright (c) 2012-2013 xTuple http://www.xtuple.com/
FAQs
Client for xTuple's REST Api
We found that xtuple-rest-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.