Solved
Forum Discussion
VikasB
7 years agoBoss
You need to hit the endpoint if you want to get these roles in JS.
Here is the API
select rank.simple_criteria from users where id='777'
Suchith
7 years agoAce
Thanks Vikas, I have made couple of web service call (Both v1 and v2) to get the data and this is what I have followed:
For V1:
URL:
http://api.lithium.com/community/v1/<Tenant_id>/users/id/2/roles?restapi.response_format=json
Header:
Client-id: <CLIENT ID>
Authorization: Bearer <TOKEN>
Content-type: application/json
For V2:
Header:
Client-id: <CLIENT ID>
Authorization: Bearer <TOKEN>
Content-type: application/json
Do i need to implement the same in javascript or please point to an example how this can be implemented using javascript.
Related Content
- 8 years ago
- 14 years ago
- 12 years ago
- 11 years ago