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

@pulpo/sdk

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pulpo/sdk

Auto-gen client sdk

  • 2.0.36
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Droz Base SDK

Instalação

yarn add @pulpo/sdk

# ou

npm install --save @pulpo/sdk

Uso

import { getHttpSdk } from '@pulpo/sdk/http';

// gere um token de autenticação Basic
const apiKey = 'bi@pulpo.email';
const apiSecret = '********';
const buffer = Buffer.from([apiKey, apiSecret].join(':'));
const token = buffer.toString('base64');

// troque <client_id> pelo identificador de seu ambiente no Droz Base
const base = getHttpSdk('https://<client_id>.pulpo.services', 'Basic ' + token);

const { me } = await base.getMe();
console.log(me); // usuário autenticado

Documentação

A SDK do Droz Base é autogerada a partir das APIs GraphQL disponíveis para cada cliente. Para acessar a documentação completa, acesse a URL do seu ambiente no Droz Base em:

https://<client_id>.pulpo.services/graphql

FAQs

Package last updated on 30 Apr 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