
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@vertexvis/api-client-node
Advanced tools
If you're ready to integrate Vertex into your application, this is the place! For more background on the Vertex platform, start with our Developer Portal.
The Vertex REST API client for Node.js is generated using openapi-generator
, so it's always up-to-date. On top of the generated code, we've added a higher-level client and helpers in the ./client
directory.
If you're not an existing Vertex customer, sign up for a free account.
Install the client and export your credentials.
# Install client
npm install --save @vertexvis/api-client-node
# Export your Vertex REST API client ID and secret
export VERTEX_CLIENT_ID=[YOUR_CLIENT_ID]
export VERTEX_CLIENT_SECRET=[YOUR_CLIENT_SECRET]
Then, create a client and start using the Vertex API.
import { logError, prettyJson, VertexClient } from '@vertexvis/api-client-node';
const main = async () => {
try {
// Shown with default values
const client = await VertexClient.build({
basePath: 'https://platform.vertexvis.com',
client: {
id: process.env.VERTEX_CLIENT_ID,
secret: process.env.VERTEX_CLIENT_SECRET,
},
});
const getFilesRes = await client.files.getFiles({ pageSize: 1 });
console.log(prettyJson(getFilesRes.data));
} catch (error) {
logError(error, console.error);
}
};
main();
# Install dependencies
yarn
# Transpile TypeScript to JavaScript
yarn build
# Format code
yarn format
# Generate latest
yarn generate
# Generate using latest OpenAPI spec, version, and open GitHub PR
yarn push:version [patch|minor|major (default: patch)]
FAQs
The Vertex REST API client for Node.js.
The npm package @vertexvis/api-client-node receives a total of 57 weekly downloads. As such, @vertexvis/api-client-node popularity was classified as not popular.
We found that @vertexvis/api-client-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.