docusign-node-client | Official DocuSign Node.js Client Library | REST library
kandi X-RAY | docusign-node-client Summary
kandi X-RAY | docusign-node-client Summary
NPM module that wraps the DocuSign API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docusign-node-client
docusign-node-client Key Features
docusign-node-client Examples and Code Snippets
Community Discussions
Trending Discussions on docusign-node-client
QUESTION
ANSWER
Answered 2019-Mar-14 at 22:19If you are using User Application then you need to check Authorization Code Grant to learn how DocuSign using this type of Grant to generate AccessToken and RefreshToken.
In User Application flow, AccessToken is provided for 8 hours and once AccessToken expires then your App needs to use Refresh Token to generate new set of Access and Refresh Token.
But if you are using System Integration then you need to check JSON Web Token Grant to learn how DocuSign provides AccessToken using JWT.
In System Integration flow, it is assumed that an API user in your App behind the scene will call DS API, and there is no DocuSign User interaction to login after certain interval to provide access to your App to generate Access token on behalf of the logged in user once Refresh token expires. System Integration Flow will get one time consent, Obtaining Consent explains how to get Consent. Once consent in provided to the Integrator Key then Integrator Key via your app can generate AccessToken any time, and this AccessToken will be valid for 3600 seconds, once it expires then you create new JWT and call DocuSign OAUTH API to generate new AccessToken for next 3600 seconds.
Node JS_03 is an example showing how User Application flow works.
Node JS_01, check for dsJwtAuth.js
is an example showing how System Integration flow works using JWT.
QUESTION
I've built out an integration using DocuSign's Node SDK. While testing using a DocuSign sandbox account, the authentication flow works just fine using the example in the docs.
I'm now trying to do the same within a live DocuSign production account using the Integrator Key that was promoted from the sandbox account. authApi.login()
seems to work just fine, I get no error and the status code of the response is 200. However, the value of loginInfo
comes back as exports {}
with no account info included.
I've made sure to change the base path from https://demo.docusign.net/restapi
to www.docusign.net/restapi
and as far as I can tell from the docs, there doesn't seem to be anything else I need to make the switch to production. Here is the code I am using:
ANSWER
Answered 2017-Dec-12 at 21:19www.docusign.net
endpoint will only work if your PROD account is in NA1, if your PROD Account is in NA2, then you need to use na2.docusign.net
and if it is in NA3 then na3.docusign.net
. This is the main reason you should use /oauth/userinfo
call with OAUTH2 Access Token to know your base URL, and then call all APIs with this baseURL. You can find more details at https://docs.docusign.com/esign/guide/authentication/userinfo.html
QUESTION
I am trying to use the docusign-node-client to send an envelope using the createEnvelope class. This class sends a REST API request to the /envelopes endpoint. The envelope I am trying to send contains a Composite Template.
Here is the body I am attempting to send to docusign
...ANSWER
Answered 2017-Apr-08 at 01:38You are specifying the inlineTemplate.envelope
property incorrectly. You can define the recipients and custom fields directly within the inlineTemplate. You do not have to specify the emailSubject/emailBlurb within the inlineTemplate.
Also note that the custom fields specified at the root level will be ignored when using composite templates. See this answer
The following json should work for you.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docusign-node-client
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page