Package com.bytedesk.social.line
Class LineService
java.lang.Object
com.bytedesk.social.line.LineService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LineConfig
private final org.springframework.web.client.RestTemplate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Process incoming webhook event from LINEvoid
sendMessage
(String userId, List<LineMessage.Message> messages) Send message to LINE uservoid
sendTextMessage
(String userId, String text) Send text message to LINE userboolean
verifyWebhookSignature
(String signature, String body) Verify webhook signature
-
Field Details
-
lineConfig
-
restTemplate
private final org.springframework.web.client.RestTemplate restTemplate
-
-
Constructor Details
-
LineService
public LineService()
-
-
Method Details
-
sendTextMessage
Send text message to LINE user -
sendMessage
Send message to LINE user -
processWebhookEvent
Process incoming webhook event from LINE -
verifyWebhookSignature
Verify webhook signature
-