Тёмный

DocuSign eSignature Quickstart with Node.js 

Vladsave Coding
Подписаться 1,3 тыс.
Просмотров 8 тыс.
50% 1

Ad: If you need help with a Docusign integration, you can book a consultation with me. Fees and contact info are available on my channel page.
In this video we will write a Node.js app that uses the DocuSign SDK to create an embedded signing ceremony for a DocuSign Envelope.
Docusign Node SDK (URL used in the video):
developers.docusign.com/docs/...
Source Code:
github.com/titus58/youtube-tu...
Chapters:
00:00 Intro
01:20 Initial scaffolding
12:17 Docusign Client Authentication
34:57 Use the Docusign API
37:05 Create the Docusign Envelope
49:59 Create the Embedded Signing Ceremony
1:01:00 Fill in custom tab values in the Envelope

Опубликовано:

 

3 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@shubhamtribhuvan9086
@shubhamtribhuvan9086 Год назад
On RU-vid only one perfect video about DocuSign Authentication 🔥Keep it up❤️
@vladsavecoding4111
@vladsavecoding4111 Год назад
Thanks 🙏
@alessandrojunior5962
@alessandrojunior5962 Год назад
Good video! Congratulations! It helped a lot to understand, especially the authentication part. Thanks!
@luizarnoldchavezburgos3638
@luizarnoldchavezburgos3638 3 месяца назад
Thanks Man. Keep working like that.
@WaleedRamzan
@WaleedRamzan Месяц назад
Keep up the great work!
@ernanijose1
@ernanijose1 Год назад
Parabéns pelo video, muito bom, bem explicado os passos que temos que fazer e como fazer, principalmente na parte da autenticação, abraços e continue com os videos, thanks!!!!
@WhereTheEnd
@WhereTheEnd 3 месяца назад
thank you so much for making this video it's really help me alot
@user-ph7ph2qd8v
@user-ph7ph2qd8v 7 месяцев назад
Great video, Vlad.
@vladsavecoding4111
@vladsavecoding4111 7 месяцев назад
Thanks
@joseherrerias7847
@joseherrerias7847 11 месяцев назад
Good stuff, thanks!
@ektasingh3116
@ektasingh3116 2 месяца назад
Thanks a lot.❤❤❤
@lanceharvie6933
@lanceharvie6933 3 месяца назад
Good job!
@Moda777-bl9ex
@Moda777-bl9ex 9 месяцев назад
Muito obrigado!!
@diegopt.mathias8488
@diegopt.mathias8488 Год назад
Thanks!😄
@amithakuriakose2336
@amithakuriakose2336 5 месяцев назад
how to customize the ui? like If I dont want the docusign default branding to come in while loading the signing page
@user-nk5iz7jw3u
@user-nk5iz7jw3u Год назад
Hi, I get this error in the MakeRecipientViewRequest function: "The request contained at least one invalid parameter. A value was not found for parameter 'userName'"
@vladsavecoding4111
@vladsavecoding4111 Год назад
- make sure you fill in a `userName` and make sure it's not null, print it with console.log when creating the recipientViewRequest - take a look at my source code, see if there's anything different github.com/titus58/youtube-tutorials/blob/main/docusign/index.js#L65
@user-ls4gj5ue7z
@user-ls4gj5ue7z 5 месяцев назад
Hey, friend I followed the steps and it worked! But how can I leave the demo version? Example of using it normally in everyday life even without it appearing to be a demo? Do you have to make 20 calls successfully? Could you help? I'm Brazilian and I use Google Translate, sorry for any mistakes
@SadCowDisease1
@SadCowDisease1 4 месяца назад
What plan are you using with Docusign to do this? Is it the Advanced Developer API?
@vladsavecoding4111
@vladsavecoding4111 3 месяца назад
Basic eSignature trial plan
@PradeepPandey-eh5hd
@PradeepPandey-eh5hd Год назад
Video at 1:00:00 time, line 100 have resposne spell mistake but project is running,and even @55:49 line 33 is missed with reference variable as results.envelopeid and need to pass the clientuserid in function parameter
@vladsavecoding4111
@vladsavecoding4111 Год назад
Thanks for pointing it out. I don't understand your point about clientUserId. I am passing it in both the template and recipient view request github.com/titus58/youtube-tutorials/blob/main/docusign/index.js#L56
@diegopt.mathias8488
@diegopt.mathias8488 Год назад
Hi, the code worked perfectly. But I tried to migrate it to NextJs, inside the pages/api that runs everything in NodeJs. He can't read private.key for nothing...I've tried several path solutions, direct import, etc...could you help me? I saw a solution that the person creates a server.js inside the root, but it was for another question and in an old version of NExtJS. I didn't feel comfortable to test...please.
@vladsavecoding4111
@vladsavecoding4111 Год назад
You have to change the way you construct the path for private.key. Take a look at the Gist below. Notice how instead of __dirname I'm using process.cwd(). Also the console.log line above will show you where the private.key file should be placed. gist.github.com/titus58/cc1c264c820cbceac25b474c42aba7e5
@SpolarPeter
@SpolarPeter Год назад
Hi, maybe this helps: const privateKeyFilename = join(process.cwd(), "config", "private.key"); I put the config folder in the root folder. If you use typescript, you also gonna need this line: const privateKey = fs.readFileSync(privateKeyFilename);
@prabhupuredla8280
@prabhupuredla8280 Год назад
Thanks for the video. It helps. I am facing one problem while creating envelope. let results = await envelopesApi.createEnvelope( process.env.DOCUSIGN_ACCOUNT_ID, { envelopeDefinition: envelope, } ); results object is always `exports {}` from the response. Can you please help me with this?
@vladsavecoding4111
@vladsavecoding4111 Год назад
If that when you console.log the response. I think that's fine, it just doesn't have a renderer to string. You can try to print some fields from inside the object
@prabhupuredla8280
@prabhupuredla8280 Год назад
@@vladsavecoding4111 thanks. I used the code from your github repo. It worked
@mubasharafzal7973
@mubasharafzal7973 Год назад
let dsApiClient = new docusign.ApiClient(); dsApiClient.setBasePath(process.env.BASE_PATH); dsApiClient.addDefaultHeader('Authorization', 'Bearer ' + req.session.access_token); return new docusign.EnvelopesApi(dsApiClient);
@6vikas
@6vikas Год назад
View URL is returning and working but email is not sending to customer for singature, can you please help?
@vladsavecoding4111
@vladsavecoding4111 Год назад
Hi. The setup in the video is with embeddable signing. You need to redirect to the view url and the customer can sign there. After they sign, they receive a copy by email
@sowsudha6996
@sowsudha6996 10 месяцев назад
Hi, I want to save my signed pdf file in local. I don't want to save signed pdf in docusign. how can i do in code level.
@vladsavecoding4111
@vladsavecoding4111 10 месяцев назад
I don't think DocuSign will work for your use case. Try looking for something "pdf digital signature library". I never had your problem so I can't recommend one library or another. Sorry
@nazamateo6468
@nazamateo6468 Год назад
Hi! Im having this error when requesting for jwt token, Error: Invalid expires in param detected. this is my requrest
@nazamateo6468
@nazamateo6468 Год назад
let dsApiClient = new docusign.ApiClient(); dsApiClient.setBasePath(process.env.NEXT_PUBLIC_DOCUSIGN_BASE_PATH); const results = await dsApiClient.requestJWTUserToken( process.env.NEXT_PUBLIC_DOCUSIGN_INTEGRATION_KEY, process.env.NEXT_PUBLIC_USERID, { scopes: "signature", }, fs.readFileSync(path.join(__dirname, "../../../../private.key")), { expiresIn: 3600 } ); console.log(`result:` + results.body);
@vladsavecoding4111
@vladsavecoding4111 Год назад
I cannot see your request. Can you send me your code? You can find my email in the channel description. Thanks
@rhodler
@rhodler 4 месяца назад
25:00
@rhodler_
@rhodler_ 7 месяцев назад
28:30
@ejfuhr
@ejfuhr Год назад
at 21:00 I'm looking for my access token. here's what i get after setting up the private.key: Error: secretOrPrivateKey must be an asymmetric key when using RS256 i got rid of all the line breaks in the private.key file
@vladsavecoding4111
@vladsavecoding4111 Год назад
I didn't get rid of the newlines, just copied and pasted as it was from the application page. Also, make sure you didn't accidentally used the public key instead of the private. You can try creating a new RSA key as well on the same app, you can have multiple keys. Also make sure you didn't miss one argument in the requestJWTUserToken call or reordered arguments.
@mubasharafzal7973
@mubasharafzal7973 Год назад
envelopesApi.createEnvelope is not a function
@vladsavecoding4111
@vladsavecoding4111 Год назад
Some things to check: did you do "npm install" before running? Otherwise check out this source, see if you're missing something github.com/titus58/youtube-tutorials/blob/main/docusign/index.js#L20
@mubasharafzal7973
@mubasharafzal7973 Год назад
let results = await envelopesApi.createEnvelope( process.env.ACCOUNT_ID, {envelopeDefinition: envelope});
@chinnur7954
@chinnur7954 Год назад
HI, i am getting below error while running the application UnhandledPromiseRejectionWarning: TypeError: Right-hand side of 'instanceof' is not an object at Object.module.exports [as sign] (/Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/node_modules/jsonwebtoken/sign.js:108:58) at generateAndSignJWTAssertion (/Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/node_modules/docusign-esign/src/ApiClient.js:65:16) at exports.requestJWTUserToken (/Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/node_modules/docusign-esign/src/ApiClient.js:917:19) at checkToken (/Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/index.js:89:41) at app.get (/Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/index.js:103:10) at Layer.handle [as handle_request] (/Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/node_modules/express/lib/router/layer.js:95:5) at next (/Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/node_modules/express/lib/router/route.js:144:13) at Route.dispatch (/Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/node_modules/express/lib/router/route.js:114:3) at Layer.handle [as handle_request] (/Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/node_modules/express/lib/router/layer.js:95:5) at /Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/node_modules/express/lib/router/index.js:284:15 (node:63064) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:63064) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@vladsavecoding4111
@vladsavecoding4111 Год назад
Can you send me your code? Link to a gist or use my email from the channel description. Thanks
@chinnur7954
@chinnur7954 11 месяцев назад
@@vladsavecoding4111 I just downloaded your code from git and added my userid credentials from docusign developer portal. It's all your code only. no changes
@chinnur7954
@chinnur7954 11 месяцев назад
This is the error i am getting now.. The above error is because of node version. I upgraded it to latest node version, it started working. Now when i click submit button, it shows the below error, TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.openSync (node:fs:582:10) at Object.readFileSync (node:fs:458:35) at makeEnvelope (/Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/index.js:81:21) at /Users/rohinikumar.subramani/Documents/GitHub/docusign/docusign/index.js:22:19 at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 'ERR_INVALID_ARG_TYPE'
@vladsavecoding4111
@vladsavecoding4111 11 месяцев назад
@@chinnur7954 Did you also edit the .env file with your account information?
@user-ls4gj5ue7z
@user-ls4gj5ue7z 5 месяцев назад
Hey, friend I followed the steps and it worked! But how can I leave the demo version? Example of using it normally in everyday life even without it appearing to be a demo? Do you have to make 20 calls successfully? Could you help? I'm Brazilian and I use Google Translate, sorry for any mistakes
@vladsavecoding4111
@vladsavecoding4111 5 месяцев назад
Yes, you need to follow the steps in their doc. Also, you need to change the BASE_PATH in env to the production one. developers.docusign.com/platform/go-live/
Далее