Search code examples
docusignapidocushare

How do I implement docusign for angular2 App?


I would like to implement sending signature request and signing the documents. Do you know if it is very difficult to do this? Can you please give me the resource to access DocuSign api?


Solution

  • The official documentation : REST API Recipe: Request a Signature via Email gives great examples on how to send signature request for different languages. I recommend you look at the Node.js example :

    var url = "https://demo.docusign.net/restapi/v2/login_information";
    var body = "";  // no request body for login api call
    
    // set request url, method, body, and headers
    var options = initializeRequest(url, "GET", body, email, password);
    
    // send the request...
    request(options, function(err, res, body) {
        if(!parseResponseBody(err, res, body)) {
            return;
        }
        baseUrl = JSON.parse(body).loginAccounts[0].baseUrl;
        next(null); // call next function
    });