General
Account
Earned badges
Achievement: Latest Unlocked
Topics Started
Replies
Preferences
Topic Started
Topics |
---|
C# code that can be used to generate usage reports (code mostly by Duo) and also a downloader tab to download inflight and/or complete transactions and their associated files. Useful to download a |
We use SSO so we don't sending out the invitation for users to activate their accounts. How can I programmatically activate the accounts using the .NET SDK. I can determine who's pending from the |
I have a situation where I set delegation to a sender using code that has worked in the past. The indication was that the delegation was successful BUT it didn't work. Looking in the UI I figured |
I know how to get subaccount api keys but how do I get a senders API key. The user has left State employment so I can't have them just login and give it to me. I don't see it in the Sender struc |
When using ReportService.DownloadCompletionReportAsCSV ReportService.DownloadUsageReportAsCSV
|
Replies Created
Reply to: iFrame in C# forms application
Tuesday, October 4, 2022 at 02:08pmSince my application is a Windows forms application I guess instead of the iframe I can just use a browser control. We use FedRAMP SSO and using the code below I get the transcation created by the URL only takes me to A2. Can I use a URL for this or because we are SSO with FedRAMP will that not work.
URL created to display the transaction that takes me to A2: https://sandbox-gov.esignlive.com/access?sessionToken=@ViewData[ZDY5M2UwMmEtODhlNC00YzZjLWFjMjEtNWY3NTc2MWYwMTJi]
GlobalVars.CurrentapiKey = GlobalVars.arrUserAPIKey[cbUsers5.SelectedIndex];
GlobalVars.CurrentapiUrl = GlobalVars.arrURLs[cbEnvironments8.SelectedIndex];
OssClient oClient = new OssClient(GlobalVars.CurrentapiKey, GlobalVars.CurrentapiUrl);
FileStream fs = File.OpenRead("C:\\Temp\\Test_Summary.pdf");
DocumentPackage superDuperPackage = PackageBuilder.NewPackageNamed("Test Package .NET6")
.WithSettings(DocumentPackageSettingsBuilder
.NewDocumentPackageSettings())
.WithSigner(SignerBuilder
.NewSignerWithEmail("[email protected]")
.WithFirstName("Signer First Name")
.WithLastName("Signer Last Name")
.WithCustomId("Signer"))
.WithSigner(SignerBuilder
.NewSignerWithEmail("[email protected]")
.WithFirstName("Your First Name")
.WithLastName("Your Last Name"))
.WithDocument(DocumentBuilder.NewDocumentNamed("sampleAgreement")
.FromStream(fs, DocumentType.PDF)
.WithSignature(SignatureBuilder
.SignatureFor("[email protected]")
.OnPage(0)
.AtPosition(175, 165))
.WithSignature(SignatureBuilder
.SignatureFor("[email protected]")
.OnPage(0)
.AtPosition(550, 165))
)
.Build();
PackageId packageId = oClient.CreatePackageOneStep(superDuperPackage);
string Senderst = oClient.AuthenticationTokenService.CreateSenderAuthenticationToken(packageId);
string newURLstr = "https://sandbox-gov.esignlive.com/access?sessionToken=@ViewData[" + Senderst + "]";
TBBrowser.Url= new Uri(newURLstr);
Console.WriteLine(newURLstr);
//newURLstr value was: https://sandbox-gov.esignlive.com/access?sessionToken=@ViewData[ZDY5M2UwMmEtODhlNC00YzZjLWFjMjEtNWY3NTc2MWYwMTJi]
Reply to: iFrame in C# forms application
Tuesday, October 4, 2022 at 02:08pmI updated the code to use the URL below and got the following error
https://signer-sandbox-gov.esignlive.com/access?sessionToken=@ViewData[NWJjOWRiODctMzEzOC00YWMxLWJjZTUtYWVmMDFmOTYxNDdh]
Error displayed:
Unauthorized Access
Your authenication token was incorrect.
The transaction is created was: 5xdG_8teu_NI4L20CpNYrIkg6cE=
I do use Subaccounts. Do I need to do something to set up things for the token to work so the sender can see the transaction and make their final edits. It's a draft after I create it beacuse I don't send it.
Reply to: iFrame in C# forms application
Tuesday, October 4, 2022 at 02:09pmI used the information in the authentication token guide and related calls to generate the URL below
URL: https://sandbox.esignlive.com/auth?senderAuthenticationToken=ZWU5MDcxYWMtNzFkYi00NmE5LThjYmItMjE2ZjZkOGQ2OGMw&target=https://sandbox.esignlive.com/a/transaction/WeK0hB1I9_faQC3XSMplk6ExYw8=/designer
I get an error
Access Denied
Your authentication token was incorrect.
I get it for both transactions in the main account and those in subaccounts.
PackageId packageId = new PackageId("WeK0hB1I9_faQC3XSMplk6ExYw8="); //main account
string Senderst = oClient.AuthenticationTokenService.CreateSenderAuthenticationToken(packageId);
//Used to display designer screen
string newURLstr = "https://sandbox.esignlive.com/auth?senderAuthenticationToken=" + Senderst + "&target=https://sandbox.esignlive.com/a/transaction/" + packageId.ToString() + "/designer";
TBBrowser.Url = new Uri(newURLstr);
UpdateStatus("URL: "+newURLstr);
UpdateStatus("Displaying Transaction For Editing!");
I tried wrong API information and different settings which gave me other errors so I'm fairly sure this is the right environment.
Any suggestions? Do you think our use of Subaccounts is impacting my results?
Reply to: iFrame in C# forms application
Tuesday, October 4, 2022 at 02:10pmI am the account owner. I guess we may also have an issue because we use subaccounts?
Reply to: API Attachments Count or Change Options
Tuesday, October 4, 2022 at 02:11pmIs there a way to use the .NET interface to access the insertDate or is it just available in JSON? I couldn't find an obvious way to access the package values for rols->attachmentRequirements via the .NET interface but maybe I just missed it.
Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
C# code that can be used to generate usage reports (code mostly by Duo) and also a downloader tab to download inflight and/or complete transactions and their associated files. Useful to download a |
1 | 4 weeks 2 days ago | 14 | ![]() |
We use SSO so we don't sending out the invitation for users to activate their accounts. How can I programmatically activate the accounts using the .NET SDK. I can determine who's pending from the |
1 | 6 months ago | 16 | ![]() |
I have a situation where I set delegation to a sender using code that has worked in the past. The indication was that the delegation was successful BUT it didn't work. Looking in the UI I figured |
1 | 6 months 1 week ago | 21 | ![]() |
I know how to get subaccount api keys but how do I get a senders API key. The user has left State employment so I can't have them just login and give it to me. I don't see it in the Sender struc |
1 | 7 months 1 week ago | 30 | ![]() |
When using ReportService.DownloadCompletionReportAsCSV ReportService.DownloadUsageReportAsCSV
|
1 | 7 months 1 week ago | 16 | ![]() |