Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@sajari/sdk-node
Advanced tools
Readme
Table of contents:
npm install @sajari/sdk-node
The following example shows how to create a collection using the SDK.
⚠️ The function below cleans up after itself by deleting the collection immediately after creation.
// Import the Sajari SDK.
const { CollectionsClient, withKeyCredentials } = require("@sajari/sdk-node");
// Create a client for working with collections from the account ID and key
// credentials.
const client = new CollectionsClient(
"account-id",
withKeyCredentials("key-id", "key-secret")
);
async function createCollection(id, displayName) {
// Create a new collection.
const collection = await client.createCollection({ id, displayName });
console.log(`Collection ${collection.displayName} created.`);
// Clean up.
await client.deleteCollection(collection.id);
}
createCollection("collection-id", "Collection display name").catch(
console.error
);
Examples are in the examples directory.
Example | Source code |
---|---|
Batch create schema fields | source code |
Batch put records | source code |
Create collection | source code |
Create pipeline | source code |
Create schema field | source code |
Delete collection | source code |
Delete record | source code |
Generate pipelines | source code |
Get collection | source code |
Get pipeline | source code |
Get record | source code |
Infer schema | source code |
List collections | source code |
List pipelines | source code |
List schema fields | source code |
Put record | source code |
Query collection | source code |
Set default pipeline | source code |
Set default pipeline version | source code |
Contributions are welcome. See the Contributing guide.
MIT
See LICENSE
FAQs
[![Build status](https://github.com/sajari/sdk-node/workflows/Build/badge.svg?branch=master)](https://github.com/sajari/sdk-node/actions)
The npm package @sajari/sdk-node receives a total of 229 weekly downloads. As such, @sajari/sdk-node popularity was classified as not popular.
We found that @sajari/sdk-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.