Class GreenApiAccount
java.lang.Object
com.greenapi.client.pkg.api.methods.GreenApiAccount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<GetAuthorizationCodeResp>getAuthorizationCode(Long phoneNumber) The method is intended to authorize an instance by phone number.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>logout()The method is aimed for logging out an account.org.springframework.http.ResponseEntity<RebootResp>reboot()The method is aimed for rebooting an account.org.springframework.http.ResponseEntity<SetProfilePictureResp>setProfilePicture(File file) 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/
-
Constructor Details
-
GreenApiAccount
public GreenApiAccount()
-
-
Method Details
-
getSettings
This method return instance settings https://greenapi.com/en/docs/api/account/GetSettings/ -
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
The method is aimed for getting the account state https://greenapi.com/en/docs/api/account/GetStateInstance/ -
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
The method is aimed for rebooting an account. https://greenapi.com/en/docs/api/account/Reboot/ -
logout
The method is aimed for logging out an account. https://greenapi.com/en/docs/api/account/Logout/ -
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
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/
-