GetExpiredSessions

Retrieves a paginated list of expired session IDs for the given token, page size and page number.

URI GET rest/v1/sessions/expired/{pageSize}/{pageNum}

Returns – A SessionLiteBucketView containing the archived signing session IDs, along with the total count. (See SessionLiteBucketView in Appendix B)

Parameters

Name Type Description
encryptedToken string Required. Encrypted Token returned from client authentication.
Returns null if the token has expired or is invalid.
pageSize int Required. The number of records you want to be displayed on a page.
pageNum int Required. The current zero-based page number your application is on.

Example – C#

[gdlr_notification icon=”none” type=”color-border” border=”#31BEF9″ color=”#000000″]
string uri = “rest/v1/sessions/expired/{0}/{1}”;
string responseString = string.Empty;
JavaScriptSerializer jss = new JavaScriptSerializer();
SessionLiteBucketView sessionLiteBucket;

uri = string.Format(uri,pageSize, pageNum);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host + uri);
request.Headers.Add(“Authorization” , encryptedToken);
request.Method = “GET”;
request.ContentType = “application/json”;

HttpWebResponse response = (HttpWebResponse)request.GetResponse();
responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
sessionLiteBucket = jss.Deserialize<SessionLiteBucketView>(responseString);
[/gdlr_notification]