Class GreenApiService
java.lang.Object
com.greenapi.client.pkg.api.methods.GreenApiService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>archiveChat(String chatId) The method archives a chat.org.springframework.http.ResponseEntity<CheckWhatsAppResp>checkWhatsapp(Long phoneNumber) The method checks WhatsApp account availability on a phone number.org.springframework.http.ResponseEntity<String>deleteMessage(MessageReq messageReq) The method deletes a message from a chat.org.springframework.http.ResponseEntity<GetAvatarResp>The method returns a user or a group chat avatar.org.springframework.http.ResponseEntity<GetContactInfoResp>getContactInfo(String chatId) The method is aimed for getting information on a contact.org.springframework.http.ResponseEntity<List<GetContactsResp>>The method is aimed for getting a list of the current account contacts.org.springframework.http.ResponseEntity<SetDisappearingChatResp>setDisappearingChat(String chatId, Long ephemeralExpiration) The method is aimed for changing settings of disappearing messages in chats.org.springframework.http.ResponseEntity<String>unarchiveChat(String chatId) The method unarchives a chat.
-
Constructor Details
-
GreenApiService
public GreenApiService()
-
-
Method Details
-
checkWhatsapp
The method checks WhatsApp account availability on a phone number. https://greenapi.com/en/docs/api/service/CheckWhatsapp/ -
getAvatar
The method returns a user or a group chat avatar. https://greenapi.com/en/docs/api/service/GetAvatar/ -
getContacts
The method is aimed for getting a list of the current account contacts. https://greenapi.com/en/docs/api/service/GetContacts/ -
getContactInfo
The method is aimed for getting information on a contact. https://greenapi.com/en/docs/api/service/GetContactInfo/ -
deleteMessage
The method deletes a message from a chat. https://greenapi.com/en/docs/api/service/deleteMessage/ -
archiveChat
The method archives a chat. One can archive chats that have at least one incoming message. https://greenapi.com/en/docs/api/service/archiveChat/ -
unarchiveChat
The method unarchives a chat. https://greenapi.com/en/docs/api/service/unarchiveChat/ -
setDisappearingChat
public org.springframework.http.ResponseEntity<SetDisappearingChatResp> setDisappearingChat(String chatId, Long ephemeralExpiration) The method is aimed for changing settings of disappearing messages in chats. The standard settings of the application are to be used: 0 (off), 86400 (24 hours), 604800 (7 days), 7776000 (90 days). https://greenapi.com/en/docs/api/service/SetDisappearingChat/
-