Package com.bytedesk.social.instagram
Class InstagramService
java.lang.Object
com.bytedesk.social.instagram.InstagramService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final InstagramConfigprivate final com.fasterxml.jackson.databind.ObjectMapperprivate final org.springframework.web.client.RestTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprocessInstagramMessage(com.fasterxml.jackson.databind.JsonNode messaging, String pageId) private voidprocessStoryMention(com.fasterxml.jackson.databind.JsonNode value) voidProcess incoming webhook event from InstagramvoidprocessWebhookEvent(String rawBody) Process incoming webhook event from Instagram (raw JSON string)voidsendMessage(String recipientId, String message) Send message to Instagram userboolean设置Instagram Business ProfilebooleanverifyWebhook(String mode, String verifyToken, String challenge) Verify webhook token
-
Field Details
-
instagramConfig
-
restTemplate
private final org.springframework.web.client.RestTemplate restTemplate -
objectMapper
private final com.fasterxml.jackson.databind.ObjectMapper objectMapper -
INSTAGRAM_API_BASE_URL
- See Also:
-
-
Constructor Details
-
InstagramService
public InstagramService()
-
-
Method Details
-
sendMessage
Send message to Instagram user -
processWebhookEvent
Process incoming webhook event from Instagram -
verifyWebhook
Verify webhook token -
processWebhookEvent
Process incoming webhook event from Instagram (raw JSON string) -
processInstagramMessage
private void processInstagramMessage(com.fasterxml.jackson.databind.JsonNode messaging, String pageId) -
processStoryMention
private void processStoryMention(com.fasterxml.jackson.databind.JsonNode value) -
setBusinessProfile
public boolean setBusinessProfile()设置Instagram Business Profile
-