Home Manual Reference Source
public class | source

Users

Extends:

API → Users

Method Summary

Public Methods
public

Searches for an existing user by email address.

public

byId(userId: string): Promise<User>

Retrieves a user's details by their user id.

public

Invites a user to PageProof by their email.

Inherited Summary

From class API
public

Public Methods

public byEmail(email: string): Promise<User> source

Searches for an existing user by email address.

Params:

NameTypeAttributeDescription
email string

The email address of the user to retieve

Return:

Promise<User>

public byId(userId: string): Promise<User> source

Retrieves a user's details by their user id.

Params:

NameTypeAttributeDescription
userId string

The user's unique identifier

Return:

Promise<User>

public invite(email: string): Promise<User> source

Invites a user to PageProof by their email.

PageProof handles sending the user an invitation email whenever they are added to a proof. You can invite a user to PageProof using this method when creating a workflow template, however they won't recieve an email immediately unless they're added to a proof as an owner, or to an active workflow.

Params:

NameTypeAttributeDescription
email string

The email address of the user to invite

Return:

Promise<User>