UNPKG
@sociate/sociate-api-sdk
Version:
beta (0.2.0-beta.1)
latest (1.0.1)
1.0.1
1.0.0
0.2.0-beta.1
0.1.0-beta.5
0.1.0-beta.4
0.1.0-beta.3
0.1.0-beta.2
0.1.0-beta.1
Javascript client for Sociate AI APIs
bitbucket.org/ws-soc-project-01/sol-soc-sdk-js
@sociate/sociate-api-sdk
/
dist
/
modules
/
users.js
14 lines
(13 loc)
•
326 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export
class
UsersAPI
{ httpClient;
constructor
(
httpClient
) {
this
.
httpClient
= httpClient; }
/** * Retrieves the current user's information. *
@returns
A promise that resolves to the user's information. */
async
me
(
) {
return
await
this
.
httpClient
.
get
(
'/users/me'
); } }