get https://{appid}.api-{region}.cometchat.io/v3/roles
Lists the user roles
How to iterate through List Roles API:
- total is the number of total roles in the application.
- count is the number of records in the data property.
- current_page is the value of page sent as query param, default=0.
- total_pages is the number of pages available. Thus the value of total page can be either equal to current_page or current_page+1.
- if total_pages == current_page there won't be any record on the next page
- if total_pages == current_page+1 we can request to fetch the next set of records.
For a detailed description of the role properties please visit here