Class Line
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.Integration
-
- com.zendesk.sunshine_conversations_client.model.Line
-
public class Line extends Integration
Line
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_CHANNEL_ACCESS_TOKENstatic java.lang.StringJSON_PROPERTY_CHANNEL_IDstatic java.lang.StringJSON_PROPERTY_CHANNEL_SECRETstatic java.lang.StringJSON_PROPERTY_LINE_IDstatic java.lang.StringJSON_PROPERTY_QR_CODE_URLstatic java.lang.StringJSON_PROPERTY_SERVICE_CODEstatic java.lang.StringJSON_PROPERTY_SWITCHER_SECRETstatic java.lang.StringJSON_PROPERTY_TYPEprotected java.lang.Stringtype-
Fields inherited from class com.zendesk.sunshine_conversations_client.model.Integration
JSON_PROPERTY_DISPLAY_NAME, JSON_PROPERTY_ID, JSON_PROPERTY_STATUS
-
-
Constructor Summary
Constructors Constructor Description Line()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinechannelAccessToken(java.lang.String channelAccessToken)LinechannelId(java.lang.String channelId)LinechannelSecret(java.lang.String channelSecret)booleanequals(java.lang.Object o)java.lang.StringgetChannelAccessToken()LINE Channel Access Token.java.lang.StringgetChannelId()LINE Channel ID.java.lang.StringgetChannelSecret()LINE Channel Secret.java.lang.StringgetLineId()LINE Basic ID.java.lang.StringgetQrCodeUrl()URL provided by LINE in the [Developer Console](https://developers.line.biz/console/).java.lang.StringgetServiceCode()LINE Service Code.java.lang.StringgetSwitcherSecret()LINE Switcher Secret.java.lang.StringgetType()For LINE, each of your customers will need to manually configure a webhook in their LINE configuration page that will point to Sunshine Conversations servers.inthashCode()LineqrCodeUrl(java.lang.String qrCodeUrl)LineserviceCode(java.lang.String serviceCode)voidsetChannelAccessToken(java.lang.String channelAccessToken)voidsetChannelId(java.lang.String channelId)voidsetChannelSecret(java.lang.String channelSecret)voidsetQrCodeUrl(java.lang.String qrCodeUrl)voidsetServiceCode(java.lang.String serviceCode)voidsetSwitcherSecret(java.lang.String switcherSecret)voidsetType(java.lang.String type)LineswitcherSecret(java.lang.String switcherSecret)java.lang.StringtoString()Linetype(java.lang.String type)-
Methods inherited from class com.zendesk.sunshine_conversations_client.model.Integration
displayName, getDisplayName, getDisplayName_JsonNullable, getId, getStatus, setDisplayName, setDisplayName_JsonNullable, setStatus, status
-
-
-
-
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_CHANNEL_ID
public static final java.lang.String JSON_PROPERTY_CHANNEL_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHANNEL_SECRET
public static final java.lang.String JSON_PROPERTY_CHANNEL_SECRET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHANNEL_ACCESS_TOKEN
public static final java.lang.String JSON_PROPERTY_CHANNEL_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SERVICE_CODE
public static final java.lang.String JSON_PROPERTY_SERVICE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SWITCHER_SECRET
public static final java.lang.String JSON_PROPERTY_SWITCHER_SECRET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_QR_CODE_URL
public static final java.lang.String JSON_PROPERTY_QR_CODE_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LINE_ID
public static final java.lang.String JSON_PROPERTY_LINE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public Line type(java.lang.String type)
- Overrides:
typein classIntegration
-
getType
@Nullable public java.lang.String getType()
For LINE, each of your customers will need to manually configure a webhook in their LINE configuration page that will point to Sunshine Conversations servers. You must instruct your customers how to configure this manually on their LINE bot page. Once you’ve acquired all the required information, call the Create Integration endpoint. Then, using the returned integration _id, your customer must set the Callback URL field in their LINE Business Center page. The URL should look like the following: `https://app.smooch.io:443/api/line/webhooks/{appId}/{integrationId}`.- Overrides:
getTypein classIntegration- Returns:
- type
-
setType
public void setType(java.lang.String type)
- Overrides:
setTypein classIntegration
-
channelId
public Line channelId(java.lang.String channelId)
-
getChannelId
@Nullable public java.lang.String getChannelId()
LINE Channel ID. Can be omitted along with `channelSecret` to integrate LINE to setup a webhook before receiving the `channelId` and `channelSecret` back from LINE.- Returns:
- channelId
-
setChannelId
public void setChannelId(java.lang.String channelId)
-
channelSecret
public Line channelSecret(java.lang.String channelSecret)
-
getChannelSecret
@Nullable public java.lang.String getChannelSecret()
LINE Channel Secret. Can be omitted along with `channelId` to integrate LINE to setup a webhook before receiving the `channelId` and `channelSecret` back from LINE.- Returns:
- channelSecret
-
setChannelSecret
public void setChannelSecret(java.lang.String channelSecret)
-
channelAccessToken
public Line channelAccessToken(java.lang.String channelAccessToken)
-
getChannelAccessToken
@Nullable public java.lang.String getChannelAccessToken()
LINE Channel Access Token.- Returns:
- channelAccessToken
-
setChannelAccessToken
public void setChannelAccessToken(java.lang.String channelAccessToken)
-
serviceCode
public Line serviceCode(java.lang.String serviceCode)
-
getServiceCode
@Nullable public java.lang.String getServiceCode()
LINE Service Code.- Returns:
- serviceCode
-
setServiceCode
public void setServiceCode(java.lang.String serviceCode)
-
switcherSecret
public Line switcherSecret(java.lang.String switcherSecret)
-
getSwitcherSecret
@Nullable public java.lang.String getSwitcherSecret()
LINE Switcher Secret.- Returns:
- switcherSecret
-
setSwitcherSecret
public void setSwitcherSecret(java.lang.String switcherSecret)
-
qrCodeUrl
public Line qrCodeUrl(java.lang.String qrCodeUrl)
-
getQrCodeUrl
@Nullable public java.lang.String getQrCodeUrl()
URL provided by LINE in the [Developer Console](https://developers.line.biz/console/).- Returns:
- qrCodeUrl
-
setQrCodeUrl
public void setQrCodeUrl(java.lang.String qrCodeUrl)
-
getLineId
@Nullable public java.lang.String getLineId()
LINE Basic ID. Is automatically set when qrCodeUrl is updated.- Returns:
- lineId
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classIntegration
-
hashCode
public int hashCode()
- Overrides:
hashCodein classIntegration
-
toString
public java.lang.String toString()
- Overrides:
toStringin classIntegration
-
-