Class GreenApiAccount

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

public class GreenApiAccount extends Object
  • 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/
    • getAuthorizationCode

      public org.springframework.http.ResponseEntity<GetAuthorizationCodeResp> getAuthorizationCode(Long phoneNumber)
      The method is intended to authorize an instance by phone number. The method is used as an alternative to the QR method. https://greenapi.com/en/docs/api/account/GetAuthorizationCode/