Package com.bytedesk.social.xiaohongshu
Class XiaohongshuService
java.lang.Object
com.bytedesk.social.xiaohongshu.XiaohongshuService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.web.client.RestTemplate
private final XiaohongshuConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
processMessageEvent
(XiaohongshuWebhookEvent.MessageEvent messageEvent) private void
void
Process incoming webhook event from Xiaohongshuvoid
sendImageMessage
(String receiverId, String imageUrl, String caption) Send image message to Xiaohongshu uservoid
sendTextMessage
(String receiverId, String text) Send text message to Xiaohongshu userboolean
verifyWebhook
(String signature, String timestamp, String body) Verify webhook signature
-
Field Details
-
xiaohongshuConfig
-
restTemplate
private final org.springframework.web.client.RestTemplate restTemplate
-
-
Constructor Details
-
XiaohongshuService
public XiaohongshuService()
-
-
Method Details
-
sendTextMessage
Send text message to Xiaohongshu user -
sendImageMessage
Send image message to Xiaohongshu user -
processWebhookEvent
Process incoming webhook event from Xiaohongshu -
processMessageEvent
-
processUserEvent
-
verifyWebhook
Verify webhook signature
-