getSubscriberInfo

View as Markdown

getSubscriberInfo

  • getSubscriberInfo(): Promise<Object>

Get information about the subscriber that is currently logged in.

Returns

Promise<Object>

Example

1const client = SignalWire({ token: /* the access token of the currently logged in user */ })
2console.log(await client.getSubscriberInfo())
1{
2 "id": "0bc4b6fe-f388-4a6b-bee3-56096e9420ac",
3 "email": "john@example.com",
4 "first_name": "John",
5 "last_name": "Doe",
6 "display_name": "John Doe",
7 "job_title": "Engineer",
8 "time_zone": "PST",
9 "country": "US",
10 "region": "East",
11 "company_name": "Example Inc",
12 "app_settings": {
13 "display_name": "Cool Application",
14 "scopes": ["read", "write"]
15 }
16}