Can anyone make extension for this php !?

Anyone can help me to build extension?

<?php //The idInstance and apiTokenInstance values are available in your account, double brackets must be removed $url = 'https://7103.api.greenapi.com/waInstance7103106310/sendMessage/941bf41975f142faa68b8152512b7c58595f971c0a3547df9a'; //chatId is the number to send the message to (@c.us for private chats, @g.us for group chats) $data = array( 'chatId' => '[email protected]', 'message' => 'Hi test' ); $options = array( 'http' => array( 'header' => "Content-Type: application/json\r\n", 'method' => 'POST', 'content' => json_encode($data) ) ); $context = stream_context_create($options); $response = file_get_contents($url, false, $context); echo $response; ?>

Ask Chat GPT to write same http request in java and then you can make extension yourself.

For example:

3 Likes

I have java library can any one convert it to kodular extension