The PMessageAdd class is used for posting new personal messages. Simply build up a string in the style of either XML or JSON and POST it to the correct end point.
| Property | Type | Description |
|---|---|---|
| FriendName | string | The name of the friend to add details to. |
| Recipient | string | The user account where the message is being sent. |
| Subject | string | The subject of the message. |
| Body | string | The body of the message. |
<PMessageAdd xmlns="http://cixonline.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Body>For the docs</Body> <Recipient>xxx</Recipient> <Subject>Test of API</Subject> </PMessageAdd>
{ "Recipient":"xxx", "Subject":"Test of API", "Body":"For the docs" }