signnow / SignNowNodeSDK

The Official SignNow Node.js Client Library for interacting with SignNow REST API. Sign documents, request e-signatures, and build role-based workflows with multiple signers using this client.
https://www.signnow.com/developers
MIT License
20 stars 22 forks source link

Fix freeform invite in document.invite #81

Closed holdMyTea closed 3 years ago

holdMyTea commented 4 years ago

Fixing the TypeError: inviteData.to.forEach is not a function for the similar calls:

api.document.invite({
  token: 'your auth token',
  id: 'document id',
  data: {
    from: 'email address',
    to: 'email address',
  },
}, (err, res) => {
  // handle error or process response data
});
holdMyTea commented 3 years ago

I can't imagine, I've missed anniversary of this PR, but still:

Happy Birthday!!1 🎉 🎉 🎉

rtereshchenko commented 3 years ago

@holdMyTea Maybe some day it will be merged)