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.RestTemplateprivate final XiaohongshuConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprocessMessageEvent(XiaohongshuWebhookEvent.MessageEvent messageEvent) private voidvoidProcess incoming webhook event from XiaohongshuvoidsendImageMessage(String receiverId, String imageUrl, String caption) Send image message to Xiaohongshu uservoidsendTextMessage(String receiverId, String text) Send text message to Xiaohongshu userbooleanverifyWebhook(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
-