Can't get all the package IDs
Friday, May 26, 2017 at 08:41amHi,
I am trying to get all the package IDs from one account. For some reason, I only get one package ID comes back, even the count shows me as 3.
The is the url i have tried 'https://sandbox.esignlive.com/api/packages'. Please see the attached screenshot for the result I get from Postman.
Can anyone please help take a look at this?
Thanks a lot,
Ning
Reply to: Can't get all the package IDs
Friday, May 26, 2017 at 10:08amReply to: Can't get all the package IDs
Friday, May 26, 2017 at 08:51amReply to: Can't get all the package IDs
Friday, May 26, 2017 at 09:31amReply to: Can't get all the package IDs
Friday, May 26, 2017 at 10:57amReply to: Can't get all the package IDs
Friday, May 26, 2017 at 11:23amIf you get a 200 response after making the DELETE request, you can be pretty much assured that the package is deleted. Someone else asked a similar question and you can read the complete answer from my colleague here: https://community.onespan.com/forum/how-do-i-tell-if-delete-package-failed
The short answer is no. Though, there are some features on sandbox.esignlive.com (version 11.2) that are not available on sandbox.e-signlive.com (version 10.13). For example, signing through the api. Pretty soon, everyone will be migrated to version 11 of esignlive. Therefore, I suggest you do your testing against version 11 :)
Reply to: Can't get all the package IDs
Friday, May 26, 2017 at 11:38amReply to: Can't get all the package IDs
Friday, May 26, 2017 at 11:42amReply to: Can't get all the package IDs
Tuesday, June 6, 2017 at 06:58amReply to: Can't get all the package IDs
Thursday, September 28, 2017 at 06:16amReply to: Can't get all the package IDs
Friday, September 29, 2017 at 05:44amint x = 0; int y = 49; GET https://sandbox.esignlive.com/api/packages?from=x&to=y; while (packageCount > 0) { if(condition){ //do something here } x+=50; y+=50; GET https://sandbox.esignlive.com/api/packages?from=x&to=y; }Reply to: Can't get all the package IDs
Friday, September 29, 2017 at 08:55amReply to: Can't get all the package IDs
Monday, October 2, 2017 at 11:23amHttpClient httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.Add("Authorization", "Basic " + Properties.Settings.Default.key); httpClient.DefaultRequestHeaders.Add("Accept", "application/json"); int x = 0; int y = 49; var response = httpClient.GetAsync(new Uri("https://sandbox.esignlive.com/api") + "/packages?from=" + x + "&to=" + y + "&lastUpdatedStartDate=2017-10-02&lastUpdatedEndDate=2017-10-03&query=draft").Result; JObject obj = JObject.Parse(response.Content.ReadAsStringAsync().Result); var packages = obj["results"]; while(packages.Count() > 0) { foreach (var package in packages) { Debug.WriteLine("Package Id: " + package["id"] + " Updated: " + package["status"]); } x += 50; y += 50; response = httpClient.GetAsync(new Uri("https://sandbox.esignlive.com/api") + "/packages?from=" + x + "&to=" + y + "&lastUpdatedStartDate=2017-10-02&lastUpdatedEndDate=2017-10-03&query=draft").Result; obj = JObject.Parse(response.Content.ReadAsStringAsync().Result); packages = obj["results"]; }Which will return you all packages in a given day per status. So, if you want to retrieve all statuses, then you will need to create a loop with the code above in order to go through each status.Reply to: Can't get all the package IDs
Tuesday, October 3, 2017 at 08:24amReply to: Can't get all the package IDs
Tuesday, October 3, 2017 at 08:47amReply to: Can't get all the package IDs
Tuesday, November 14, 2017 at 06:51amReply to: Can't get all the package IDs
Tuesday, November 14, 2017 at 07:13amReply to: Can't get all the package IDs
Tuesday, November 14, 2017 at 08:43amReply to: Can't get all the package IDs
Tuesday, November 14, 2017 at 11:10amReply to: Can't get all the package IDs
Tuesday, November 14, 2017 at 03:48pmReply to: Can't get all the package IDs
Monday, December 11, 2017 at 07:16amReply to: Can't get all the package IDs
Monday, December 11, 2017 at 08:36amReply to: Can't get all the package IDs
Monday, December 11, 2017 at 10:15amReply to: Can't get all the package IDs
Monday, December 11, 2017 at 10:20amReply to: Can't get all the package IDs
Wednesday, December 13, 2017 at 04:47amReply to: Can't get all the package IDs
Thursday, December 14, 2017 at 05:55amReply to: Can't get all the package IDs
Friday, December 15, 2017 at 09:56amReply to: Can't get all the package IDs
Thursday, January 25, 2018 at 04:27amReply to: Can't get all the package IDs
Thursday, January 25, 2018 at 10:42amReply to: Can't get all the package IDs
Monday, January 29, 2018 at 05:05am