Official Hipcall API Wrapper written in PHP.
composer require hipcall/hipcall_sdk
<?php
require 'vendor/autoload.php';
use Hipcall\HipcallClient;
$token = 'API_TOKEN';
$client = new HipcallClient($token);
// Get calls
$response = $client->calls->list('limit=5&offset=0');
print_r($response);
// Get a call
$response = $client->calls->get('6c64f58d-65fc-4415-8a3e-958f0cd05504', '2024-01-01');
print_r($response);
If you use the different node, for example turkey, you should change the baseUri. For global node, you don't need to change it.
<?php
require 'vendor/autoload.php';
use Hipcall\HipcallClient;
$token = 'API_TOKEN';
$customBaseUri = 'https://use.hipcall.com.tr/api/v3/';
$client = new HipcallClient($token, $customBaseUri);
// Get calls
$response = $client->calls->list('limit=5&offset=0');
print_r($response);
// Get a call
$response = $client->calls->get('6c64f58d-65fc-4415-8a3e-958f0cd05504', '2024-01-01');
print_r($response);
// Create a call card
$id = '6c64f58d-65fc-4415-8a3e-958f0cd05504';
$cardParams = [
[
'link' => 'https://my-crm.com',
'text' => 'My CRM',
'type' => 'title'
],
[
'label' => 'Account ID',
'link' => 'https://my-crm.com/1234',
'text' => '1234',
'type' => 'shortText'
],
[
'label' => 'Company name',
'text' => 'Acme Inc.',
'type' => 'shortText'
],
[
'label' => 'Account Owner',
'type' => 'user',
'user_id' => 1234
]
];
$response = $client->calls->createCard($id, $cardParams);
print_r($response);
// List call's comment
$response = $client->calls->listComments('1bb91cdc-6649-456c-a46b-97c302010667');
print_r($response);
// Create a call comment
$commentParams = [
'content' => 'New comment'
];
$response = $client->calls->createComment($id, $commentParams);
print_r($response);
- Task
- Phone system - call
- Phone system - extensions
- Phone system - greetings
- Phone system - numbers
- Phone system - teams
- Phone system - users
- Phone system - voicemails
- Contact centre
- Sales
- Account
All Hipcall libraries:
- HipcallDisposableEmail - Simple library checking the email's domain is disposable or not.
- HipcallDeepgram - Unofficial Deepgram API Wrapper written in Elixir.
- HipcallOpenai - Unofficial OpenAI API Wrapper written in Elixir.
- HipcallWhichtech - Find out what the website is built with.
Hipcall's SDKs
- Hipcall Elixir SDK - Official Hipcall API Wrapper written in Elixir.
- Hipcall Python SDK - Official Hipcall API Wrapper written in Python.
- Hipcall PHP SDK - Official Hipcall API Wrapper written in PHP.
- Hipcall Ruby SDK - Official Hipcall API Wrapper written in Ruby.