mifiel / nodejs-api-client Goto Github PK
View Code? Open in Web Editor NEWMifiel API Client for NodeJS
Home Page: https://www.mifiel.com
License: MIT License
Mifiel API Client for NodeJS
Home Page: https://www.mifiel.com
License: MIT License
The function getAndSaveFile
is returning true
even when the file is not created yet, i would recommend to add a listener on the fs.createWriteStream
to wait for the file end and promisify all of these to ensure that true
is returned only when the file is completely written
congrats for this new client, it is awesome ;)
I am using mifiel document.save function and if I put hosted or server pdf path to file:'path to my-file.pdf' it throws the error. If I put the local path while testing, it works fine. I am implementing in firebase sdk for cloud functions in node.js. Below the function from documentation for reference.
const document = new Mifiel.Models.Document({
file: 'path/to/my-file.pdf',
signatories: [
{ name: 'Signer 1', email: '[email protected]', tax_id: 'AAA010101AAA' },
{ name: 'Signer 2', email: '[email protected]', tax_id: 'AAA010102AAA' }
]
})
document.save().then(doc => {
console.log(doc)
doc.original_hash
doc.file
doc.file_signed
})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.