Class GreenApiAccount

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

public class GreenApiAccount extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<Qr>
    The method is aimed for getting QR code.
    org.springframework.http.ResponseEntity<Settings>
    This method return instance settings https://greenapi.com/en/docs/api/account/GetSettings/
    org.springframework.http.ResponseEntity<StateInstanceResp>
    The method is aimed for getting the account state https://greenapi.com/en/docs/api/account/GetStateInstance/
    org.springframework.http.ResponseEntity<StatusInstanceResp>
    The method is aimed for getting the status of the account instance socket connection with WhatsApp.
    org.springframework.http.ResponseEntity<WaSettings>
    The method is aimed to get information about the WhatsApp account https://greenapi.com/en/api/account/GetWaSettings/
    org.springframework.http.ResponseEntity<LogoutResp>
    The method is aimed for logging out an account.
    org.springframework.http.ResponseEntity<RebootResp>
    The method is aimed for rebooting an account.
    org.springframework.http.ResponseEntity<SetProfilePictureResp>
    The method is aimed for setting an account picture.
    org.springframework.http.ResponseEntity<SetSettingsResp>
    setSetting(InstanceSettingsReq instanceSettings)
    Use this method for change instance settings https://greenapi.com/en/docs/api/account/SetSettings/

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GreenApiAccount

      public GreenApiAccount()
  • Method Details

    • getSettings

      public org.springframework.http.ResponseEntity<Settings> getSettings()
      This method return instance settings https://greenapi.com/en/docs/api/account/GetSettings/
    • getWaSettings

      public org.springframework.http.ResponseEntity<WaSettings> getWaSettings()
      The method is aimed to get information about the WhatsApp account https://greenapi.com/en/api/account/GetWaSettings/
    • setSetting

      public org.springframework.http.ResponseEntity<SetSettingsResp> setSetting(InstanceSettingsReq instanceSettings)
      Use this method for change instance settings https://greenapi.com/en/docs/api/account/SetSettings/
    • getStateInstance

      public org.springframework.http.ResponseEntity<StateInstanceResp> getStateInstance()
      The method is aimed for getting the account state https://greenapi.com/en/docs/api/account/GetStateInstance/
    • getStatusInstance

      public org.springframework.http.ResponseEntity<StatusInstanceResp> getStatusInstance()
      The method is aimed for getting the status of the account instance socket connection with WhatsApp. https://greenapi.com/en/docs/api/account/GetStatusInstance/
    • reboot

      public org.springframework.http.ResponseEntity<RebootResp> reboot()
      The method is aimed for rebooting an account. https://greenapi.com/en/docs/api/account/Reboot/
    • logout

      public org.springframework.http.ResponseEntity<LogoutResp> logout()
      The method is aimed for logging out an account. https://greenapi.com/en/docs/api/account/Logout/
    • getQrCode

      public org.springframework.http.ResponseEntity<Qr> getQrCode()
      The method is aimed for getting QR code. To authorize your account, you have to scan a QR code from application WhatsApp Business on your phone. https://greenapi.com/en/docs/api/account/QR/
    • setProfilePicture

      public org.springframework.http.ResponseEntity<SetProfilePictureResp> setProfilePicture(File file)
      The method is aimed for setting an account picture. https://greenapi.com/en/docs/api/account/SetProfilePicture/