plasma-user-js-client
v1.0.4
Published
User API SDK
Downloads
10
Readme
Users
Kind: global class
new Users(url)
User API JS client
| Param | Description | | --- | --- | | url | Root path of the service, i.e. http://service-users.sol.dev/api/v1 |
users.theme(user_id)
Returns user's publicly available theme (name, avatar, colors).
You will get an object {"userName":"...string","avatar":"...string","background":"#42a5f5"}
Kind: instance method of Users
| Param | Description | | --- | --- | | user_id | User id |