示例#1
0
        public async void GetEnvelopeRecipientInformation()
        {
            var auth = new AuthenticationClient(_username, _password, _integratorKey);
            await auth.LoginInformationAsync();

            var client = new DocuSignClient(auth);

            var envelope = await client.SendSignatureRequestAsync(_templateId, _recipientName, _recipientEmail, _templateRole);

            var recipient = await client.GetEnvelopeRecipientInformationAsync(envelope.envelopeId);

            Assert.IsNotNull(recipient);
            Assert.IsNotNull(recipient.signers);
            Assert.IsNotNull(recipient.recipientCount);
            Assert.IsNotNull(recipient.currentRoutingOrder);
            Assert.IsNotNull(recipient.signers[0].name);
            Assert.IsNotNull(recipient.signers[0].email);
            Assert.IsNotNull(recipient.signers[0].recipientId);
            Assert.IsNotNull(recipient.signers[0].recipientIdGuid);
            Assert.IsNotNull(recipient.signers[0].requireIdLookup);
            Assert.IsNotNull(recipient.signers[0].userId);
            Assert.IsNotNull(recipient.signers[0].clientUserId);
            Assert.IsNotNull(recipient.signers[0].routingOrder);
            Assert.IsNotNull(recipient.signers[0].note);
            Assert.IsNotNull(recipient.signers[0].status);
            Assert.IsNotNull(recipient.signers[0].templateLocked);
            Assert.IsNotNull(recipient.signers[0].templateRequired);
        }
示例#2
0
        // GET api/envelope/<id>
        public async Task <Recipient> Get([FromUri] string id)
        {
            await CheckAuthInfo();

            var client = new DocuSignClient(BaseUrl, DocuSignCredentials);

            var recipient = await client.GetEnvelopeRecipientInformationAsync(id);

            return(recipient);
        }