Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 2.27 KB

AndroidAllOf.md

File metadata and controls

31 lines (24 loc) · 2.27 KB

SunshineConversationsClient::AndroidAllOf

Properties

Name Type Description Notes
type String <aside class=&quot;notice&quot;>Firebase Cloud Messaging has deprecated its legacy APIs for HTTP and XMPP. Legacy credentials <code>serverKey</code> and <code>senderId</code> will stop working as of June 2024 and must be replaced with OAuth 2.0 access token based credentials.</aside> To configure an android integration, first visit the Firebase Console. Generate a private key from the Service accounts tab in the settings. Copy the `project_id`, `client_email` and `private_key` from the generated JSON file and call the create integrations endpoint with this data. [optional] [default to 'android']
project_id String Your project ID from your generated private key file. [optional]
client_email String Your client email from your generated private key file. [optional]
private_key String Your private key from your generated private key file. [optional]
server_key String Your server key from the fcm console. [optional]
sender_id String Your sender id from the fcm console. [optional]
can_user_create_more_conversations Boolean Allows users to create more than one conversation on the android integration. [optional]
attachments_enabled Boolean Allows users to send attachments. By default, the setting is set to true. This setting can only be configured in Zendesk Admin Center. [optional] [readonly]

Code Sample

require 'SunshineConversationsClient'

instance = SunshineConversationsClient::AndroidAllOf.new(type: null,
                                 project_id: &lt;project-id&gt;,
                                 client_email: &lt;client-email&gt;,
                                 private_key: &lt;private-key&gt;,
                                 server_key: &lt;server-key&gt;,
                                 sender_id: &lt;sender-id&gt;,
                                 can_user_create_more_conversations: null,
                                 attachments_enabled: null)