Functions

getHeaders

Returns headers used to make a valid request to pixelplace.

getHeaders(): any

getSessionData

Returns the session data or null if no session data has been set.

getSessionData(): ISessionData | null

performPing

Performs the ping.php request to pixelplace

public async performPing(): Promise<void>

getEmail

Returns the email or a empty string if no email has been given.

getEmail(): string

setUsername

Makes a request to PixelPlace to set a username. If no username parameter is supplied, a random string is used instead.

async setUsername(username: string = customRandomString(7)): Promise<void>

Login

Logins into the account. Returns ISessionDataif it was successful, or IError when it was not successful.

async Login(): Promise<ISessionData | IError>

Last updated

Was this helpful?