Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 797 Bytes

File metadata and controls

24 lines (18 loc) · 797 Bytes

SunshineConversationsClient::Postback

Properties

Name Type Description Notes
type String The type of action. [default to 'postback']
text String The button text.
payload String The payload of a postback or reply button.
metadata Hash<String, Object> 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]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::Postback.new(
  type: null,
  text: null,
  payload: null,
  metadata: {&quot;lang&quot;:&quot;en-ca&quot;}
)