Click or drag to resize

MessageClientPostToPerson Method

Posts a private 1:1 message in plain text, and optionally, a media content attachment, to a person by person email.

Namespace:  SparkSDK
Assembly:  SparkSDK (in SparkSDK.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
C#
public void PostToPerson(
	string toPerson,
	string text,
	List<LocalFile> files = null,
	Action<SparkApiEventArgs<Message>> completionHandler = null
)

Parameters

toPerson
Type: SystemString
The email address or the personId of the recipient when sending a private 1:1 message.
text
Type: SystemString
The plain text message to post to the room.
files (Optional)
Type: System.Collections.GenericListLocalFile
Local file objects to be uploaded to the room.
completionHandler (Optional)
Type: SystemActionSparkApiEventArgsMessage
The completion event handler.
Remarks
Since: 0.1.0
See Also