Class Messagebird


  • public class Messagebird
    extends Integration
    Messagebird
    • Field Detail

      • JSON_PROPERTY_TYPE

        public static final java.lang.String JSON_PROPERTY_TYPE
        See Also:
        Constant Field Values
      • type

        protected java.lang.String type
      • JSON_PROPERTY_ACCESS_KEY

        public static final java.lang.String JSON_PROPERTY_ACCESS_KEY
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SIGNING_KEY

        public static final java.lang.String JSON_PROPERTY_SIGNING_KEY
        See Also:
        Constant Field Values
      • JSON_PROPERTY_ORIGINATOR

        public static final java.lang.String JSON_PROPERTY_ORIGINATOR
        See Also:
        Constant Field Values
      • JSON_PROPERTY_WEBHOOK_SECRET

        public static final java.lang.String JSON_PROPERTY_WEBHOOK_SECRET
        See Also:
        Constant Field Values
      • JSON_PROPERTY_DEFAULT_RESPONDER_ID

        public static final java.lang.String JSON_PROPERTY_DEFAULT_RESPONDER_ID
        See Also:
        Constant Field Values
      • JSON_PROPERTY_DEFAULT_RESPONDER

        public static final java.lang.String JSON_PROPERTY_DEFAULT_RESPONDER
        See Also:
        Constant Field Values
    • Constructor Detail

      • Messagebird

        public Messagebird()
    • Method Detail

      • getType

        @Nullable
        public java.lang.String getType()
        To configure a MessageBird integration, acquire the accessKey, the signingKey and the MessageBird number you would like to use, then call the Create Integration endpoint. The response will include the integration’s `_id` and `webhookSecret`, which must be used to configure the webhook in MessageBird. In the Flow Builder for the MessageBird number you’ve used to integrate, add a new step with the following settings: - Create a new Call HTTP endpoint with SMS flow. - Select your desired SMS number for Incoming SMS. - Click on Forward to URL and set its method to POST. - Then, using the integration _id and webhookSecret returned from the create integration call, enter the following into the URL field: `https://app.smooch.io/api/messagebird/webhooks/{appId}/{integrationId}/{webhookSecret}` - Select application/json for the Set Content-Type header field. - Save and publish your changes.
        Overrides:
        getType in class Integration
        Returns:
        type
      • setType

        public void setType​(java.lang.String type)
        Overrides:
        setType in class Integration
      • accessKey

        public Messagebird accessKey​(java.lang.String accessKey)
      • getAccessKey

        public java.lang.String getAccessKey()
        The public API key of your MessageBird account.
        Returns:
        accessKey
      • setAccessKey

        public void setAccessKey​(java.lang.String accessKey)
      • signingKey

        public Messagebird signingKey​(java.lang.String signingKey)
      • getSigningKey

        public java.lang.String getSigningKey()
        The signing key of your MessageBird account. Used to validate the webhooks' origin.
        Returns:
        signingKey
      • setSigningKey

        public void setSigningKey​(java.lang.String signingKey)
      • originator

        public Messagebird originator​(java.lang.String originator)
      • getOriginator

        public java.lang.String getOriginator()
        Sunshine Conversations will receive all messages sent to this phone number.
        Returns:
        originator
      • setOriginator

        public void setOriginator​(java.lang.String originator)
      • getWebhookSecret

        @Nullable
        public java.lang.String getWebhookSecret()
        The secret that is used to configure webhooks in MessageBird.
        Returns:
        webhookSecret
      • defaultResponderId

        public Messagebird defaultResponderId​(java.lang.String defaultResponderId)
      • getDefaultResponderId

        @Nullable
        public java.lang.String getDefaultResponderId()
        The default responder ID for the integration. This is the ID of the responder that will be used to send messages to the user. For more information, refer to <a href=\"https://docs.smooch.io/guide/switchboard/#per-channel-default-responder\">Per-channel default responder</a> guide.
        Returns:
        defaultResponderId
      • getDefaultResponderId_JsonNullable

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getDefaultResponderId_JsonNullable()
      • setDefaultResponderId_JsonNullable

        public void setDefaultResponderId_JsonNullable​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> defaultResponderId)
      • setDefaultResponderId

        public void setDefaultResponderId​(java.lang.String defaultResponderId)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Integration