PrivateMessageApiClient
Contains all the endpoints needed to manage private messages.
Constructors
new PrivateMessageApiClient()
new PrivateMessageApiClient():
PrivateMessageApiClient
Returns
Methods
chunkUploadDone()
static
chunkUploadDone(data
,config
?):Promise
<SCPrivateMessageUploadMediaType
>
This endpoint finalizes the chunk upload and creates the file.
Parameters
Parameter | Type | Description |
---|---|---|
data | MessageChunkUploadDoneParams | |
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
Parameter | Type | Description |
---|---|---|
id | string | 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
Parameter | Type | Description |
---|---|---|
params | ThreadDeleteParams | |
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
Parameter | Type | Description |
---|---|---|
id | string | 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
Parameter | Type | Description |
---|---|---|
params | ThreadParams | |
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
Parameter | Type | Description |
---|---|---|
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
Parameter | Type | Description |
---|---|---|
search | string | |
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
Parameter | Type | Description |
---|---|---|
data | MessageCreateParams | |
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
Parameter | Type | Description |
---|---|---|
data | MessageMediaUploadParams | |
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
Parameter | Type | Description |
---|---|---|
data | MessageMediaChunksParams | |
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
Parameter | Type | Description |
---|---|---|
data | MessageThumbnailUploadParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPrivateMessageUploadThumbnailType
>