SendWhatsappMessage
The SendWhatsappMessage() function sends a message to a specified phone number via WhatsApp. It requires a WhatsApp API key, the recipient's phone number, and the message content.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
SendWhatsappMedia
The SendWhatsappMedia() function sends media (image, video, etc.) to a specified phone number via WhatsApp. It requires a WhatsApp API key, the recipient's phone number, and the URL of the media to be sent.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
SendWhatsappAudioFromText
The SendWhatsappAudioFromText() function converts the provided text into an audio message and sends it to a specified phone number via WhatsApp. It requires a WhatsApp API key, the recipient's phone number, and the text to be converted to audio.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
createInstance
The create_instance() function creates a new WhatsApp API instance and associates it with an agent. It requires the agent's ID and returns the unique instance_id of the created WhatsApp instance.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
List instances
The list_instances() function retrieves a list of all existing WhatsApp API instances. It returns detailed information about each instance, enabling management and tracking of multiple WhatsApp sessions.
1 2 3 4 5 6 7 8 9 10 | |
Retrieve QR Code
The retrieve_qr_code() function retrieves the QR code for a specific WhatsApp API instance. The QR code is returned as a Base64-encoded string, which can be used for authentication. It requires the instance_id of the instance for which the QR code is being requested.
1 2 3 4 5 6 7 8 9 10 | |
Get user data
The get_user_data() function retrieves user data associated with a specific WhatsApp API instance. It requires the instance_id of the instance and returns the user's information.
1 2 3 4 5 6 7 8 9 10 | |
Delete instance
The delete_instance() function deletes a specific WhatsApp API instance. It requires the instance_id of the instance to be deleted and returns the result of the deletion operation.
1 2 3 4 5 6 7 8 9 10 | |