Skip to main content

PrivateMessageApiClient

Contains all the endpoints needed to manage private messages.

Constructors

new PrivateMessageApiClient()

new PrivateMessageApiClient(): PrivateMessageApiClient

Returns

PrivateMessageApiClient

Methods

chunkUploadDone()

static chunkUploadDone(data, config?): Promise<SCPrivateMessageUploadMediaType>

This endpoint finalizes the chunk upload and creates the file.

Parameters

ParameterTypeDescription
dataMessageChunkUploadDoneParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPrivateMessageUploadMediaType>

Source

services/private_message/index.ts:139


deleteAMessage()

static deleteAMessage(id, config?): Promise<any>

This endpoint deletes a single message.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/private_message/index.ts:83


deleteAThread()

static deleteAThread(params, config?): Promise<any>

This endpoint deletes a thread.

Parameters

ParameterTypeDescription
paramsThreadDeleteParams
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/private_message/index.ts:92


getASingleMessage()

static getASingleMessage(id, config?): Promise<SCPrivateMessageThreadType>

This endpoint retrieves a single message using ID.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<SCPrivateMessageThreadType>

Source

services/private_message/index.ts:65


getAThread()

static getAThread(params, config?): Promise <SCPaginatedResponse<SCPrivateMessageThreadType>>

This endpoint retrieves all messages in a thread.

Parameters

ParameterTypeDescription
paramsThreadParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCPrivateMessageThreadType>>

Source

services/private_message/index.ts:55


getAllSnippets()

static getAllSnippets(config?): Promise <SCPaginatedResponse<SCPrivateMessageSnippetType>>

This endpoint retrieves all snippets.

Parameters

ParameterTypeDescription
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCPrivateMessageSnippetType>>

Source

services/private_message/index.ts:46


searchUser()

static searchUser(search, config?): Promise <SCPaginatedResponse<SCUserType>>

This endpoint performs users search.

Parameters

ParameterTypeDescription
searchstring
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserType>>

Source

services/private_message/index.ts:152


sendAMessage()

static sendAMessage(data, config?): Promise<SCPrivateMessageThreadType>

This endpoint sends a message.

Parameters

ParameterTypeDescription
dataMessageCreateParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPrivateMessageThreadType>

Source

services/private_message/index.ts:74


uploadMedia()

static uploadMedia(data, config?): Promise<SCPrivateMessageUploadMediaType>

This endpoint uploads a media.

Parameters

ParameterTypeDescription
dataMessageMediaUploadParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPrivateMessageUploadMediaType>

Source

services/private_message/index.ts:102


uploadMediaInChunks()

static uploadMediaInChunks(data, config?): Promise<SCPrivateMessageUploadMediaChunkType>

This endpoint performs the chunk upload of a file.

Parameters

ParameterTypeDescription
dataMessageMediaChunksParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPrivateMessageUploadMediaChunkType>

Source

services/private_message/index.ts:125


uploadThumbnail()

static uploadThumbnail(data, config?): Promise<SCPrivateMessageUploadThumbnailType>

This endpoint uploads a thumbnail.

Parameters

ParameterTypeDescription
dataMessageThumbnailUploadParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPrivateMessageUploadThumbnailType>

Source

services/private_message/index.ts:111