Socket
Book a DemoInstallSign in
Socket

iugu

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iugu

Biblioteca Iugu para Node.js

0.0.6
latest
Source
npmnpm
Version published
Weekly downloads
282
4.44%
Maintainers
2
Weekly downloads
 
Created
Source

Iugu para node.js Build StatusHack iugu/iugu-node on Nitrous.IO

Instalação

npm install iugu

Exemplo de Uso

var iugu = require('iugu')('c73d49f9-6490-46ee-ba36-dcf69f6334fd'); // Ache sua chave API no Painel
// iugu.{ RESOURCE_NAME }.{ METHOD_NAME }

Todo método aceita um callback opcional como ultimo argumento:

iugu.customer.create({
  'email': 'email@email.com',
  'name': 'Nome do Cliente',
  'notes': 'Anotações Gerais'
  }, function(err, customer) {
    err; // null se não ocorreu nenhum erro
    customer; // O objeto de retorno da criação
  }
);

Documentação

Acesse iugu.com/documentacao para referência

Configuração

  • iugu.setApiKey('c73d49f9-6490-46ee-ba36-dcf69f6334fd');
  • iugu.setTimeout(20000); // in ms (node's default: 120000ms)

Testes

Execute :

npm test

Autor

Originalmente por Luis Specian (luis@specian.com.br).

FAQs

Package last updated on 13 Aug 2014

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.