Class GreenApiService

java.lang.Object
com.greenapi.client.pkg.api.methods.GreenApiService

public class GreenApiService extends Object
  • Constructor Details

    • GreenApiService

      public GreenApiService()
  • Method Details

    • checkWhatsapp

      public org.springframework.http.ResponseEntity<CheckWhatsAppResp> checkWhatsapp(Long phoneNumber)
      The method checks WhatsApp account availability on a phone number. https://greenapi.com/en/docs/api/service/CheckWhatsapp/
    • getAvatar

      public org.springframework.http.ResponseEntity<GetAvatarResp> getAvatar(String chatId)
      The method returns a user or a group chat avatar. https://greenapi.com/en/docs/api/service/GetAvatar/
    • getContacts

      public org.springframework.http.ResponseEntity<List<GetContactsResp>> getContacts()
      The method is aimed for getting a list of the current account contacts. https://greenapi.com/en/docs/api/service/GetContacts/
    • getContactInfo

      public org.springframework.http.ResponseEntity<GetContactInfoResp> getContactInfo(String chatId)
      The method is aimed for getting information on a contact. https://greenapi.com/en/docs/api/service/GetContactInfo/
    • deleteMessage

      public org.springframework.http.ResponseEntity<String> deleteMessage(MessageReq messageReq)
      The method deletes a message from a chat. https://greenapi.com/en/docs/api/service/deleteMessage/
    • archiveChat

      public org.springframework.http.ResponseEntity<String> archiveChat(String chatId)
      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

      public org.springframework.http.ResponseEntity<String> unarchiveChat(String chatId)
      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/