ideea-pin-js
v1.0.0
Published
JavaScript SDK for Pin
Downloads
4
Readme
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)
})