Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vertexvis/api-client-node

Package Overview
Dependencies
Maintainers
0
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vertexvis/api-client-node

The Vertex REST API client for Node.js.

  • 0.23.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Vertex API Client for Node.js

Version MIT License

TypeDoc Documentation

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.

Usage

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();

Local Development

# Install dependencies
yarn

# Transpile TypeScript to JavaScript
yarn build

# Format code
yarn format

Publishing

# Generate latest
yarn generate

# Generate using latest OpenAPI spec, version, and open GitHub PR
yarn push:version [patch|minor|major (default: patch)]

Keywords

FAQs

Package last updated on 25 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc