Introduction

Lorem ipsum dolor sit amet.

Code Examples

API Endpoint

https://asteriskcustomerconnect.com/api/1.0/

Installation

For instructions on how to install the Wordpress Plugin, please click here.

Authentication

Authentication to Asterisk Customer Connect is made by setting your API key pairs in the request. API Keys can be managed from your account. All requests must be made over HTTPS - calls made over HTTP will fail. Authentication is required for every request.

Example

Basic Connect


				<?php
				# configure key pairs
				$data = array(
				'public_key'	    =>		'EA86468D2CC5-A2867C951D10B0A-2C03B044EDC51'
				'private_key'	    =>		'9BD971C5C98D-D0E1AE198477AF3-FBD0129306CF5'
				);
				?>
			

Example Failed Response


				{
					"message": "Error",
					"detailed": "This API is only available over HTTPS. Please try https://asteriskcustomerconnect.com/api/1.0/help"
				}
			

Retrieve Business Hours

Retrieves the business hours set in the admin panel

Example


				API Endpoint:
				https://asteriskcustomerconnect.com/api/1.0/businessHours
			

Listing Calls

Returns all calls from start to end

Example

				
					#API Endpoint:
					#https://asteriskcustomerconnect.com/api/1.0/calls/start=unixtimestamp&end=unixtimestamp

				
			

Listing Successful Calls

Lists only successful calls placed

Example


				API Endpoint:
				https://asteriskcustomerconnect.com/api/1.0/success/start=unixtimestamp&end=unixtimestamp
			

Listing Failed Calls

Lists only failed calls placed

Example

				
					API Endpoint:
					https://asteriskcustomerconnect.com/api/1.0/failed/start=unixtimestamp&end=unixtimestamp
				
			

Making a call

Makes a call

Example


				<?php

				# required data:
				$data = array(
				'public_key'	=>	'EA86468D2CC5-A2867C951D10B0A-2C03B044EDC51',
				'private_key' 	=>	'9BD971C5C98D-D0E1AE198477AF3-FBD0129306CF5',
				'number'		=>	15554443333,
				'first_name'	=>	'John',
				'last_name' 	=>	'Smith',
				'email' 		=>	'john.smith@somesite.com',
				'ip_address' 	=>	'192.168.10.148');

				API Endpoint:
				https://asteriskcustomerconnect.com/api/1.0/makecall