Should I be able to view current packages for all senders under the same account using the API key and .NET SDK?
I have created a Sandbox account with an additional sender and can successfully create a new package in DRAFT passing only the secondary account as the sender. If i then execute eslClient.PackageService.GetPackages(DocumentPackageStatus.DRAFT, new PageRequest(0)) my resulting collection count is 0.
Doesn’t the API key have full access to the child senders under the account? Any assistance would be appreciated!
This topic was modified 11 months, 1 week ago by KKrumbine.
There’re few ways to do so:
#1. if you want to use the Completion Report feature, there’s an overwrite function in ReportService:
public string DownloadCompletionReportAsCSV(Silanis.ESL.SDK.DocumentPackageStatus packageStatus, String senderId, DateTime from, DateTime to)
Which allows you to input a sender ID as the parameter.
#2. if you want to retrieve the complete Package Metadata instead of the Completion Report, you can:
– First, retrieve your sender’s API KEY by this API call (using your owner’s API KEY):
Currently, this function is not available in the SDK, but I can create some sample code using REST method in .NET if you want.
– Then use this API KEY to create a new EslClient object and call the function
public Page GetPackages(DocumentPackageStatus status, PageRequest request)