Retrieve all personal distribution lists
You can retrieve all of a user's personal distribution lists from the user's
mailbox. In the following sample code, an empty request body requests
BEMS
to retrieve all
distribution lists in a user's mailbox. POST /api/contactgroup HTTP/1.1 https://:<BEMS FQDN>:8443/api/contactgroup Content-Type: application/json X-Good-GD-AuthToken: <GDAuthToken> { }
If the request is successful,
BEMS
returns the following
response and the BlackBerry Work
and
third-party apps display the user's personal distribution lists. HTTP/1.1 200 OK { Groups:[ {Name: "<personal distribution_list1>", Members:[ {Name: "<User1>", Email: "<user1@example.com>"}, {Name: "<User2>", Email: "<user2@example.com>"} ] }, {Name: "<personal distribution_list2>", Members: [ {Name: "<User1>", Email: "<user1@example.com>"}, {Name: "<User2>", Email: "<user2@example.com>"}, {Name: "<User3>", Email: "<user3@example.com>"} ] }, {Name: "<personal distribution_list3>", Members: [ {Name: "<User1>", Email: "<user1@example.com>"}, {Name: "<User2>", Email: "<user2@example.com>"}, {Name: "<User3>", Email: "<user3@example.com>"}, {Name: "<User4>", Email: "<user4@example.com>"} ] } ] }