Package com.bytedesk.social.instagram
Class InstagramMessageController
java.lang.Object
com.bytedesk.social.instagram.InstagramMessageController
@RestController
@RequestMapping("/api/instagram/messages")
public class InstagramMessageController
extends Object
Instagram消息发送控制器
提供REST API接口用于发送各种类型的Instagram消息
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<InstagramMessageResponse>
标记消息为已读org.springframework.http.ResponseEntity<InstagramMessageResponse>
给消息添加心情反应org.springframework.http.ResponseEntity<InstagramMessageResponse>
发送心形贴图org.springframework.http.ResponseEntity<InstagramMessageResponse>
发送链接消息org.springframework.http.ResponseEntity<InstagramMessageResponse>
发送媒体分享org.springframework.http.ResponseEntity<InstagramMessageResponse>
发送文本消息org.springframework.http.ResponseEntity<InstagramMessageResponse>
发送正在输入状态org.springframework.http.ResponseEntity<InstagramMessageResponse>
停止正在输入状态org.springframework.http.ResponseEntity<InstagramMessageResponse>
移除消息的心情反应
-
Field Details
-
instagramMessageService
-
-
Constructor Details
-
InstagramMessageController
public InstagramMessageController()
-
-
Method Details
-
sendTextMessage
@PostMapping("/text") public org.springframework.http.ResponseEntity<InstagramMessageResponse> sendTextMessage(@RequestBody InstagramMessageController.TextMessageRequest request) 发送文本消息- Parameters:
request
- 包含recipientId和text的请求- Returns:
- 发送结果
-
sendLinkMessage
@PostMapping("/link") public org.springframework.http.ResponseEntity<InstagramMessageResponse> sendLinkMessage(@RequestBody InstagramMessageController.LinkMessageRequest request) 发送链接消息- Parameters:
request
- 包含recipientId和link的请求- Returns:
- 发送结果
-
sendLikeHeart
@PostMapping("/like-heart") public org.springframework.http.ResponseEntity<InstagramMessageResponse> sendLikeHeart(@RequestBody InstagramMessageController.LikeHeartRequest request) 发送心形贴图- Parameters:
request
- 包含recipientId的请求- Returns:
- 发送结果
-
reactToMessage
@PostMapping("/react") public org.springframework.http.ResponseEntity<InstagramMessageResponse> reactToMessage(@RequestBody InstagramMessageController.ReactRequest request) 给消息添加心情反应- Parameters:
request
- 包含recipientId、messageId和reaction的请求- Returns:
- 操作结果
-
unreactToMessage
@PostMapping("/unreact") public org.springframework.http.ResponseEntity<InstagramMessageResponse> unreactToMessage(@RequestBody InstagramMessageController.UnreactRequest request) 移除消息的心情反应- Parameters:
request
- 包含recipientId和messageId的请求- Returns:
- 操作结果
-
markAsSeen
@PostMapping("/mark-seen") public org.springframework.http.ResponseEntity<InstagramMessageResponse> markAsSeen(@RequestBody InstagramMessageController.MarkSeenRequest request) 标记消息为已读- Parameters:
request
- 包含recipientId的请求- Returns:
- 操作结果
-
sendTypingIndicator
@PostMapping("/typing-on") public org.springframework.http.ResponseEntity<InstagramMessageResponse> sendTypingIndicator(@RequestBody InstagramMessageController.TypingRequest request) 发送正在输入状态- Parameters:
request
- 包含recipientId的请求- Returns:
- 操作结果
-
stopTypingIndicator
@PostMapping("/typing-off") public org.springframework.http.ResponseEntity<InstagramMessageResponse> stopTypingIndicator(@RequestBody InstagramMessageController.TypingRequest request) 停止正在输入状态- Parameters:
request
- 包含recipientId的请求- Returns:
- 操作结果
-