GithubHelp home page GithubHelp logo

mifiel / nodejs-api-client Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 70 KB

Mifiel API Client for NodeJS

Home Page: https://www.mifiel.com

License: MIT License

JavaScript 1.41% TypeScript 98.59%
electronic-signatures mifiel

nodejs-api-client's People

Contributors

genaromadrid avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ivanrios gmdelc66

nodejs-api-client's Issues

getAndSaveFile is not waiting for the file to be completely written

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 ;)

Problem in save document function of Mifiel

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
})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.