Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ideea-pin-js

ideea-inc2MIT1.0.0

JavaScript SDK for Pin

readme

3PS


Pin   |   Ideea.io   |   Full Documentation   |   NPM


Pin JS SDK

Pin is an IPFS Pinning Service. Select a object hash to Pin and the data will be pinned and spread to our 4 CDN nodes across North America, making the object easily accessible through the public gateways. Currently in beta.

Installation

$ npm install pin-js

Getting Started

const Pin = require('pin-js')

var pin = new Pin('YOUR_API_KEY')

pin.create({
    group_id: '00ffedbb-ff29-5138-9b5d-cd1f6ae3bc6b',
    hash: 'Qmaisz6NMhDB51cCvNWa1GMS7LU1pAxdF4Ld6Ft9kZEP2a',
    expires_in: 3600
}).then(function (pin) {
    console.log(pin)
})