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

@or-sdk/contacts

Package Overview
Dependencies
Maintainers
2
Versions
618
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@or-sdk/contacts

``` $ npm i @or-sdk/contacts ```

  • 1.1.1-beta.556.0
  • npm
  • Socket score

Version published
Weekly downloads
933
decreased by-12.89%
Maintainers
2
Weekly downloads
 
Created
Source

Installation:

$ npm i @or-sdk/contacts

Contacts is a composition of separate Api entities.

Usage:

import { Contacts } from '@or-sdk/contacts'

// with direct api url
const contacts = new Contacts({
  token: 'my-account-token-string',
  sdkUrl: 'http://example.account-settings/endpoint'
});

// with service discovery(slower)
const accountSettings = new Contacts({
  token: 'my-account-token-string',
  discoveryUrl: 'http://example.account-settings/endpoint'
});

After when you initialize the Contacts Api, various entities are available at your service with which you can work (all entities presented in api folder )

Example

Let's say you want to perform some CRUD operation on the contactBook entity All you need to do, it's just refer to contactBookApi(entity)

import { Contacts } from '@or-sdk/contacts'


const {contactBookApi, migrationsApi, ...rest} = new Contacts(...);
const migrationsStatus = migrationsApi.migrationsStatus()
const book = contactBookApi.getContactsBook(id)
const newContactBook = contactBookApi.createContactBook(...)

[[include:contacts/CHANGELOG.md]]

FAQs

Package last updated on 17 Aug 2022

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