
Product
Rubygems Ecosystem Support Now Generally Available
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
harvest-api-client
Advanced tools
JavaScript client library for the Harvest API.
npm install harvest-api-client
import Client from 'harvest-api-client'
const client = new Client({
url: 'http://harvest.research.chop.edu/demo/api/'
});
// Call a method on one of the APIs. This returns a promise
// that resolves by passing in the data for that call.
client.categories.all()
.then(function(data) {
data.forEach(function(category) {
console.log(category);
});
})
Initialize the client. If authentication is required supply a token
or username
and password
.
const client = new Client({
token: string?,
username: string?,
password: string?
});
// Fetch all categories.
client.categories.all();
// Fetch all concepts.
client.concepts.all();
// Return all "queryable" concepts.
client.concepts.queryable();
// Return all "viewable" concepts.
client.concepts.viewable();
// Search concepts by keyword.
client.concepts.search({
query: string
});
// Get a concept by id.
client.concepts.get({
id: integer
});
// Fetch all fields.
client.fields.all();
// Fetch all contexts.
client.contexts.all();
// Get a context by id.
client.contexts.get({
id: integer
});
// Fetch all views.
client.views.all();
// Get a view by id.
client.views.get({
id: integer
});
// Fetch all queries.
client.queries.all();
// Fetch all public queries.
client.queries.public();
// Get a query by id.
client.queries.get({
id: integer
});
// Fetch a page of data for the specified context and view.
client.data.preview({
page: integer?,
limit: integer?,
context: object?,
view: object?
});
// Export and download data for a query into the specified format.
client.data.export({
format: string,
context: object?,
view: object?
});
// Fetch all model counts.
client.stats.counts();
FAQs
README.md
The npm package harvest-api-client receives a total of 4 weekly downloads. As such, harvest-api-client popularity was classified as not popular.
We found that harvest-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.