Skip to content

corazonjs/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Test: GREEN-API

Functions

  • getSettings(): This function sends a GET request to the API to retrieve settings for the specified WhatsApp instance.

  • getStateInstance(): This function sends a GET request to the API to retrieve the state of the specified WhatsApp instance.

  • sendMessage(): This function sends a POST request to the API to send a message to the specified WhatsApp number. The message parameters are taken from the corresponding form fields.

  • sendFileByUrl(): This function sends a POST request to the API to send a file from the specified URL to the specified WhatsApp number. The file parameters are taken from the corresponding form fields.

  • The responses is displayed in the responseField element