New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@seven.io/client

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seven.io/client

Official API client for seven

  • 4.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
65
decreased by-48%
Maintainers
3
Weekly downloads
 
Created
Source

Official JavaScript API Client for seven

Installation

This library relies on the global fetch API. To use this library with Node.js < 18, node-fetch is required.

For compatibility with Node.js versions < 12, please also install the globalThis polyfill.

Via NPM

npm install @seven.io/client

Via Yarn

yarn add @seven.io/client

Browser


<script src='https://unpkg.com/browse/@seven.io/client/dist/seven-client.umd.cjs'></script>

Example

// const globalThis = require('globalthis')(); // uncomment if NodeJS < NodeJS versions < 12
// globalThis.fetch = require('node-fetch').default; // uncomment in NodeJS environments
// const {BalanceResource, Client} = require('@seven.io/client'); // uncomment in NodeJS environments

import {BalanceResource, Client} from '@seven.io/client'

const client = new Client({apiKey: 'MY_SUPER_SECRET_SEVEN_IO_API_KEY!'})
const balanceResource = new BalanceResource(client)
balanceResource.get()
    .then(console.log)
    .catch(console.error);

Tests

  1. git clone https://github.com/seven-io/js-client seven-client
  2. cd seven-client && npm install
  3. SEVEN_API_KEY=<ApiKey> SEVEN_SIGNING_SECRET=<SigningSecret> npm run test

Set SEVEN_DEBUG=1 for details printed to stdout.

Support

Need help? Feel free to contact us.

MIT

Keywords

FAQs

Package last updated on 23 Jan 2025

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