0.22.6 • Published 7 days ago

@vertexvis/api-client-node v0.22.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

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)]
0.22.6

7 days ago

0.22.5

10 days ago

0.22.4

17 days ago

0.22.3

2 months ago

0.22.2

5 months ago

0.21.3

9 months ago

0.21.2

10 months ago

0.22.1

6 months ago

0.22.0

8 months ago

0.21.1

11 months ago

0.21.0

11 months ago

0.20.10

11 months ago

0.20.9

1 year ago

0.20.8

1 year ago

0.20.7

1 year ago

0.20.6

1 year ago

0.20.5

1 year ago

0.20.4

1 year ago

0.20.3

2 years ago

0.20.0

2 years ago

0.18.1

2 years ago

0.17.2

2 years ago

0.17.3

2 years ago

0.17.1

2 years ago

0.17.0

2 years ago

0.16.0

2 years ago

0.15.6

2 years ago

0.15.4

3 years ago

0.15.5

3 years ago

0.15.0

3 years ago

0.15.1

3 years ago

0.15.2

3 years ago

0.15.3

3 years ago

0.14.8

3 years ago

0.14.7

3 years ago

0.14.6

3 years ago

0.14.5

3 years ago

0.14.4

3 years ago

0.14.3

3 years ago

0.14.2

3 years ago

0.14.1

3 years ago

0.14.0

3 years ago

0.13.11

3 years ago

0.13.10

3 years ago

0.13.8

3 years ago

0.13.7

3 years ago

0.13.6

3 years ago

0.13.5

3 years ago

0.13.4

3 years ago

0.13.3

3 years ago

0.13.0

3 years ago

0.13.1

3 years ago

0.13.2

3 years ago

0.12.5

3 years ago

0.12.4

3 years ago

0.12.3

3 years ago

0.12.2

3 years ago

0.12.1

3 years ago

0.12.0

3 years ago