Package com.greenapi.pkg.api.methods
Class GreenApiJournals
java.lang.Object
com.greenapi.pkg.api.methods.GreenApiJournals
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<List<ChatHistoryMessage>>getChatHistory(GetChatHistoryReq getChatHistoryReq) The method returns the chat message history.org.springframework.http.ResponseEntity<ChatMessage>getMessage(MessageReq messageReq) The method returns the chat message.org.springframework.http.ResponseEntity<List<ChatMessage>>lastIncomingMessages(Integer minutes) The method returns the last incoming messages of the account.org.springframework.http.ResponseEntity<List<ChatMessage>>lastOutgoingMessages(Integer minutes) The method returns the last outgoing messages of the account.
-
Constructor Details
-
GreenApiJournals
public GreenApiJournals()
-
-
Method Details
-
getChatHistory
public org.springframework.http.ResponseEntity<List<ChatHistoryMessage>> getChatHistory(GetChatHistoryReq getChatHistoryReq) The method returns the chat message history. https://greenapi.com/en/docs/api/journals/GetChatHistory/ -
getMessage
The method returns the chat message. https://greenapi.com/en/docs/api/journals/GetMessage/ -
lastIncomingMessages
public org.springframework.http.ResponseEntity<List<ChatMessage>> lastIncomingMessages(Integer minutes) The method returns the last incoming messages of the account. In the default mode the incoming messages for 24 hours are returned. https://greenapi.com/en/docs/api/journals/LastIncomingMessages/ -
lastOutgoingMessages
public org.springframework.http.ResponseEntity<List<ChatMessage>> lastOutgoingMessages(Integer minutes) The method returns the last outgoing messages of the account. In the default mode the last messages for 24 hours are returned. https://greenapi.com/en/docs/api/journals/LastOutgoingMessages/
-