- 10 Oct 2024
- 1 Minute to read
- DarkLight
- PDF
Group Summary
- Updated on 10 Oct 2024
- 1 Minute to read
- DarkLight
- PDF
Java SDK
To download the full code sample see our Code Share site.
The following code samples illustrate how to retrieve a summary of all groups associated with the current account.
Using the OneSpan Sign client to loop through each GroupSummary object you can retrieve the Group Name, Group Id, and Group Email.
List<GroupSummary> groupSummary = eslClient.getGroupService().getGroupSummaries();
for (GroupSummary groupSumm : groupSummary){
System.out.format("Group name: %s, Id: %s, Group Email: %s\n", groupSumm.getName(), groupSumm.getId(), groupSumm.getEmail());
}
Results
Here is an example of what you can expect to see once you have run your code.
.NET SDK
To download the full code sample see our Code Share site.
The following code samples illustrate how to retrieve a summary of all groups associated with the current account.
Using the OneSpan Sign client to loop through each GroupSummary object you can retrieve the Group Name, Group Id, and Group Email.
List<GroupSummary> groupSummary = eslClient.GroupService.GetGroupSummaries();
foreach (GroupSummary groupSumm in groupSummary)
{
Debug.WriteLine("Group name: {0}, Id: {1}, Group Email: {2}\n", groupSumm.Name, groupSumm.Id, groupSumm.Email);
}
Results
Here is an example of what you can expect to see once you have run your code.
REST API
To download the full code sample see our Code Share site.
The following code samples illustrate how to retrieve a summary of all groups associated with the current account.
The Code
Using the OneSpan Sign client to loop through each GroupSummary object you can retrieve the Group Name, Group Id, and Group Email.
HTTP Request
GET /api/groups/summary
HTTP Headers
Accept: application/json
Content-Type: application/json
Authorization: Basic api_key
Response Payload
{
"results": [
{
"id": "9fb94cb3-30c0-4432-87e5-a3bdd202f34d",
"data": null,
"email": "delegation-e8saocDxDB4I@groups.e-signlive.com",
"name": "Delegation group for e8saocDxDB4I"
},
{
"id": "51d67169-caf4-4ef8-9081-2b617311115f",
"data": null,
"email": "delegation-easd123DxDB4I@groups.e-signlive.com",
"name": "Group1"
}
],
"count": 2
}