2017 © Pedro PelĆ”ez
 

library aircall-php

Aircall API client built on top of Guzzle 6

image

antoinelemaire/aircall-php

Aircall API client built on top of Guzzle 6

  • Thursday, January 26, 2017
  • by Bouffe
  • Repository
  • 2 Watchers
  • 6 Stars
  • 4,080 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 136 % Grown

The README.md

This is a non-official Aircall PHP library which provides access to the Aircall API from applications written in the PHP language., (*1)

Api references: https://developer.aircall.io/api-references/, (*2)

API version

Last update: 1.11.2, (*3)

Installation

The recommended way to install aircall-php is through Composer:, (*4)

composer require antoinelemaire/aircall-php

Usage

Clients

use Aircall\AircallClient;

$client = new AircallClient(appId, apiKey);

// Test purpose
$client->ping();

Company

// Get generic data about the account
$client->company->get();

Users

// Get a user by ID
$client->users->get(155468);

// List all users
$client->users->list();

Calls

// Get a call by ID
$client->calls->get(155468);

// List all calls
$client->calls->list();

// Search calls
$client->calls->search([
  'tags' => 'myTag',
]);

// Display a link in-appĀ to theĀ UserĀ who answered a specificĀ Call.
$client->calls->link(155468, [
    'link' => 'http://something.io/mypage'
]);

// Transfer theĀ CallĀ to another user.
$client->calls->transfert(1644658, [
    'user_id' => 8945487
]);

// Delete the recording of a specificĀ Call.
$client->calls->deleteRecording(795312);

// Delete the voicemail of a specificĀ Call.
$client->calls->deleteVoicemail(13877988);

Contacts

// List all contacts
$client->contacts->list();

// Get a contact by ID
$client->contacts->get(699421);

// Create a contact
$client->contacts->create([
    'first_name'    => 'John',
    'last_name'     => 'Doe',
    'information'   => 'TEST',
    'phone_numbers' => [
        [
            'label' => 'Work',
            'value' => '+33631000000',
        ],
    ],
    'emails' => [
        [
            'label' => 'Work',
            'value' => 'john.doe@something.io',
        ],
    ],
]);

// Search contacts
$client->contacts->search([
    'phone_number' => '+33631000000',
    'email' => 'john.doe@something.io'
]);

// Update data for a specific Contact
$client->contacts->update(165451, [
  'first_name'    => 'John',
  'last_name'     => 'Doe',
  'information'   => 'TEST',
  'phone_numbers' => [
      [
          'label' => 'Work',
          'value' => '+33631000000',
      ],
  ],
  'emails' => [
      [
          'label' => 'Work',
          'value' => 'john.doe@something.io',
      ],
  ],
]);

// Delete a specific Contact
$client->contacts->delete(325459);

Tags

TODO, (*5)

Webhooks

TODO, (*6)

Teams

TODO, (*7)

The Versions

26/01 2017

dev-master

9999999-dev

Aircall API client built on top of Guzzle 6

  Sources   Download

Apache Version 2

The Requires

 

The Development Requires

api guzzle aircall aircall.io

26/01 2017

1.0.0

1.0.0.0

Aircall API client built on top of Guzzle 6

  Sources   Download

Apache Version 2

The Requires

 

The Development Requires

api guzzle aircall aircall.io

25/01 2017

1.0.0-b1

1.0.0.0-beta1

Aircall API client built on top of Guzzle 6

  Sources   Download

Apache Version 2

The Requires

 

The Development Requires

api guzzle aircall aircall.io