示例#1
0
        public async Task <SigningUrlResponse> GetAgreementSigningUrl([FromQuery] string agreementId)
        {
            await this.RefreshTokenAsync().ConfigureAwait(true);

            var response = client.GetAgreementSigningUrl(agreementId).Result;

            return(response);
            //client.CreateAgreement();
        }
示例#2
0
        private SigningUrlResponse GetSigningUrl(int?creditDataId, string agreementId)
        {
            SigningUrlResponse response;

            try
            {
                //this.RefreshToken(creditDataId);
                response = client.GetAgreementSigningUrl(creditDataId, agreementId).Result;
                repository.AddAdobeSignLog(creditDataId, "GetAgreementSigningUrl", $"agreementId={agreementId}", response);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                repository.AddAdobeSignLog(creditDataId, "GetAgreementSigningUrl", $"agreementId={agreementId}", e);
                throw;
            }

            //response.signingUrlSetInfos = null;
            return(response);
        }