• Partners
  • Email Us
  • Product
    • Channels
      • Voice
      • Email
      • SMS
      • Chat
      • Messenger
      • Omnichannel
    • Features
      • Predictive Dialer
      • VCC Live Pay
      • Outbound IVR
      • Inbound IVR
      • Voicemail Detection
      • Live Dashboards
      • ACD
      • Salesforce Integration
      • Dialogflow
  • Solutions
    • Customer Service
    • Sales Teams
    • Debt Collection
    • Virtual Call Center
  • Pricing
  • Resources
    • Blog
    • Case Studies
    • Ebooks
    • Courses
    • Webinars
    • Information Security
    • Learning Center
    • Developers
  • Company
    • About us
    • Careers
    • News
    • Partners
  • Partners
  • Email Us
+44 208 638 0169
GET STARTED
Developer GuidesDatabase APIExamplesWeb Callback Example
  • Overview
    • About Database API
    • The API location
    • Authentication and Security
    • Testing API
    • Request and Response
    • HTTP Response Codes
  • Examples
    • Hello World Example
    • Advanced Example
    • Web Callback Example
  • Reference
  • Project
    • List projects
    • List project outbound numbers
    • Get project parameters
    • Cloning projects
    • Get quota limits
    • Modify quota limits
  • Database
    • Add field and values
    • Add new value(s) to a field
    • Modify value(s) of a field
    • Delete a value
    • List records
    • Get detailed record information
    • Modify record
    • Modify contact
    • Add record
    • Add disposition
    • Batch record modification
    • Batch disposition modification
    • Add new value to Robinson list
    • Delete from Robinson list resource
  • Statistics
    • Dashboard API
    • Get CDR log
    • Get CDR log for a specified uuid
    • Get Email Log
    • Get voicefile for a specified CDR
    • Get inbound statistics
    • Get call statistics
    • User state log
    • User based statistics
    • User based model
    • Number of available agents in a queue
    • User's Current Status
  • Users
    • List users
    • Add new user
    • List teams
    • List all roles
    • User's Current Status
  • Archiver
    • Get the year and month when no voicefiles were archived
    • List all downloadable voice files in a given month
    • Set a successfully downloaded voicefile as archived
    • Download voice file
  • Campaign Manager
    • Get Database
    • Get Fields
    • Add Customer
    • Modify Customer
Back to Support and Learning Center

Web Callback Example

This section describes how to implement web callback technology into your website using the Database API.

Web callbacks allow any website visitor to request a callback through your website by entering their phone number and some relevant information in a form. To implement this feature, you need to perform the following steps:

  1. Create a new project in VCC Live or use an existing one, and make a note of the project ID. Add your required fields below the phone number and name fields, which are automatically created in every new project. Enable the Database API described above.
  2. You need to create a simple information request form on your own website, which visitors can fill in and send to your server by pressing the Submit button.
  3. You also need a server side script, which receives form data and sends the given phone number and other relevant information to VCC Live’s database by calling the Database API
  4. The given number is stored on your VCC Live project database and an agent can manually (or by using our predictive dialer) dial the number immediately.

Note: To increase form filling conversion rates, ask for as little information as possible. By doing this you can reduce the time it takes for visitors to complete the form, and thus more visitors will be willing to fill it in.

Warning: You should also bear in mind that many records can be inserted in a short time by harmful spam robots, so ensure that the form is filled by a genuine visitor by using, for example, captcha technology. You should also check the phone number’s prefix to avoid calling expensive private or international numbers.

For more information on Web Callback:

  • http://en.wikipedia.org/wiki/Web_callback

Below is the HTML form for retrieving a telephone number:

Add record

<!DOCTYPE html>
<html>
   <head>
      <meta http-equiv="Content-tpye" content="text/html; charset=utf-8" />
      <title>Teszt form</title>
   </head>
   <body>
      Request call back
      <form method="post" action="webcallback.php">
         Name: <input type="text" name="fullname" value="" /><br />
         Your number*: <input type="text" name="phone" value="" /> (e.g.: +4211234567)<br />
         <input type="submit" value="Submit" />
      </form>
   </body>
</html>

Below is a server-side PHP script, which receives and forwards form data to VCC Live’s Database API. This example code uses RestClient.php, which can be found in the ‘Advanced Example’ section above.

<?php
useVCCAPIv2RestClient;
 
if (empty($_POST['fullname']) or empty($_POST['phone'])) {
    echo 'All fields required';
}
 
require_once ('../../RestClient.php');
 
$customer = 'CUSTOMER';
$password = 'PASSWORD';
$apiClient = new RestClient($customer, $password);
$data = array(
    'name' = -- > $_POST['fullname'],
    'phone1' => $_POST['phone'],
);
$projectId = 3;
$resource = sprintf('/v2/projects/%s/records', $projectId);
$result = $apiClient->post($resource, $data);
echo $result ? 'ok' : 'error';
Back to Support and Learning Center

Comments

Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.


There are no comments yet.

Click here to cancel reply.

Please note that by clicking on the Submit button, you agree to a member of VCC Live team contacting you with business offers. You can find detailed information on how we can establish contact with you in our Privacy Policy

  • Channels
    • Voice
    • Email
    • SMS
    • Chat
    • Messenger
    • Omnichannel
  • Main Features
    • Call Center Software
    • Predictive Dialer
    • VCC Live Pay
    • Outbound IVR
    • Inbound IVR
    • Voicemail Detection
    • Live Dashboards
    • ACD
    • Salesforce Integration
    • Dialogflow
  • Solutions
    • Customer Service
    • Sales Teams
    • Debt Collection
    • Virtual Call Center
  • Resources
    • Blog
    • Case Studies
    • Ebooks
    • Courses
    • Webinars
    • Information Security
    • Learning Center
    • Developers
    • Download
  • Company
    • About us
    • Careers
    • News
    • Partners
https://vcc.live/wp-content/uploads/2019/07/iso-cert-1.png https://vcc.live/wp-content/uploads/2019/07/iso-cert-2.png https://vcc.live/wp-content/uploads/2019/07/iso-cert-3.png
Social Media
https://vcc.live/wp-content/uploads/2019/07/linkedin.svg https://vcc.live/wp-content/uploads/2019/07/twitter.svg https://vcc.live/wp-content/uploads/2019/07/facebook-1.svg https://vcc.live/wp-content/uploads/2019/07/instagram-1.svg
Call us
Hungary
+36 19996400
UK
+44 2086380169
Germany
+49 3021782516
Poland
+48 123950886
Romania
+40 31706167
USA
+1 3024988337
Hungary
+36 19996400
UK
+44 2086380169
Germany
+49 3021782516
Poland
+48 123950886
Romania
+40 31706167
USA
+1 3024988337
  • Privacy Policy
  • Cookie Policy
  • Legal Statement
  • General Terms of Agreement
  • Magyar nyelvű jogi dokumentumok