Class GreenApiReceiving

java.lang.Object
com.greenapi.pkg.api.methods.GreenApiReceiving

public class GreenApiReceiving extends Object
  • Constructor Details

    • GreenApiReceiving

      public GreenApiReceiving()
  • Method Details

    • receiveNotification

      public org.springframework.http.ResponseEntity<String> receiveNotification()
      The method is aimed for receiving one incoming notification from the notifications queue. https://greenapi.com/en/docs/api/receiving/technology-http-api/ReceiveNotification/
    • deleteNotification

      public org.springframework.http.ResponseEntity<String> deleteNotification(int receiptId)
      The method is aimed for deleting an incoming notification from the notification queue. https://greenapi.com/en/docs/api/receiving/technology-http-api/DeleteNotification/
    • downloadFile

      public org.springframework.http.ResponseEntity<byte[]> downloadFile(MessageReq messageReq)
      The method is aimed for downloading incoming and outgoing files. Links to incoming files are transmitted in Incoming messages, and you can also get them using LastIncomingMessages method. You can get links to outgoing files using LastOutgoingMessages method. (Files storage period and, accordingly, the capability to download them is limited by WhatsApp) https://greenapi.com/en/docs/api/receiving/files/DownloadFile/