<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Ziwo Integration</title>

</head>

<body>

    <!-- Include Ziwo JavaScript SDK -->

    <script src="https://cdn.ziwo.io/sdk/ziwo.min.js"></script>


    <!-- Your other HTML content goes here -->


    <script>

        // Initialize Ziwo client with your API key

        const ziwoClient = new Ziwo.Client('YOUR_API_KEY');


        // Example: Make a call

        ziwoClient.call.makeCall('TO_PHONE_NUMBER', 'FROM_PHONE_NUMBER');


        // Example: Send an SMS

        ziwoClient.sms.send('TO_PHONE_NUMBER', 'MESSAGE_CONTENT');


        // Example: Listen for incoming calls

        ziwoClient.on('callIncoming', (call) => {

            // Handle incoming call

            console.log('Incoming call:', call);

        });

    </script>

</body>

</html>

Comments

Popular posts from this blog

How to seperate character from string in php

How to Delete record using PHP Ajax

Uploads Only 10 files in month step by step