Sha256: 1bd38fdfd47b8b67eada0af05fc79229d0fb84da8128ea6259d6c680edd3661b

Contents?: true

Size: 1.66 KB

Versions: 5

Compression:

Stored size: 1.66 KB

Contents

# SunshineConversationsClient::MessagePost

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author** | [**Author**](Author.md) | The author of the message. | 
**content** | [**Content**](Content.md) | The content of the message. | 
**destination** | [**Destination**](Destination.md) |  | [optional] 
**metadata** | [**Object**](.md) | Flat object containing custom properties. Strings, numbers and booleans  are the only supported format that can be passed to metadata. The metadata is limited to 4KB in size.  | [optional] 
**override** | [**MessageOverride**](MessageOverride.md) |  | [optional] 
**message_schema** | **String** | Send WhatsApp Message Templates using \"whatsapp\", while populating the message key using the native [WhatsApp schema](https://developers.facebook.com/docs/whatsapp/api/messages/message-templates). When the `messageSchema` is specified, the message is automatically converted to the Sunshine Conversations schema to be stored in the conversation record. The Sunshine Conversations message schema is also used in the API response. Go to [Post Message API](https://docs.smooch.io/guide/whatsapp/#post-message-api) to view an example.  | [optional] 

## Code Sample

```ruby
require 'SunshineConversationsClient'

instance = SunshineConversationsClient::MessagePost.new(author: null,
                                 content: null,
                                 destination: null,
                                 metadata: {"lang":"en-ca"},
                                 override: null,
                                 message_schema: whatsapp)
```


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sunshine-conversations-client-9.4.1 docs/MessagePost.md
sunshine-conversations-client-9.4.0 docs/MessagePost.md
sunshine-conversations-client-9.3.0 docs/MessagePost.md
sunshine-conversations-client-9.2.0 docs/MessagePost.md
sunshine-conversations-client-9.1.1 docs/MessagePost.md