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

coins-ph-promise

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coins-ph-promise

Coins.ph API with Promises for Node.js

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Coins.ph API for Node.js with Promises

The Coins.ph API Reference is a good resource to learn more about these APIs.

Installing in your Node project

$ npm install --save coins-ph-promise

Building

Be sure you have babel installed:

$ npm install -g babel-cli babel-preset-es2015

Then:

$npm run build

Example Usage

import Coins from "coins-ph-promise";

var coinsClient = new Coins({
    key: process.env.COINS_KEY,
    secret: process.env.COINS_SECRET
});

client.transactionHistory()
.then(function(data) {
    console.log(data);
})
.catch(function(err) {
    console.log(err);
});

client.payoutOutlets({ region: "PH" })
.then(function(data) {
    console.log(data);
})
.catch(function(err) {
    console.log(err);
});

License

[MIT][license] © [Scott Hasbrouck][http://scotthasbrouck.com]

Keywords

FAQs

Package last updated on 07 Apr 2016

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