plasma-user-js-client

User API SDK

Usage no npm install needed!

<script type="module">
  import plasmaUserJsClient from 'https://cdn.skypack.dev/plasma-user-js-client';
</script>

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