clientsdesk/clientsdesk-api-client-php

Clientsdesk.net REST API PHP Client.

Maintainers

👁 howtwizer

Package info

github.com/clientsdesk/clientsdesk-api-client-php

pkg:composer/clientsdesk/clientsdesk-api-client-php

Statistics

Installs: 14

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2018-09-18 15:12 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 639efd84d3a7dd8c2a9c66e2121ea5a12944615b

This package is not auto-updated.

Last update: 2026-06-21 15:41:50 UTC


README

PHP Client to connect clientsdesk.net

Requirements

  • PHP 5.6+

Installation

The Clientsdesk PHP API client can be installed using Composer.

Composer

To install run composer require clientsdesk/clientsdesk-api-client-php

Configuration

Configuration is done through an instance of Clientsdesk\API\HttpClient. Api Key is mandatory and if not passed, an error will be thrown.

// load Composer
require 'vendor/autoload.php';

use Clientsdesk\API\HttpClient as ClientsdeskAPI;

$api_key = "pLhQ6UhxsPZ8p7QU4S3rT6btXfH6yiVBjciKirnD"; // replace this with your api key
$api_signature = "pLhQ6UhxsPZ8p7QU4S3rT6btXfH6yiVBjciKirnD"; // replace this with your api signature

$client = new ClientsdeskAPI($api_key, $api_signature);

Usage

Basic Operations

  • Hint: You can find examples and operations in tests directory.
// Create new message from Web form
$messageAttributes = [
 'form_id' => 'form id here',
 'body' => 'some body from form',
 'subject' => 'optional subject',
 'name' => 'Test User',
 'email' => 'test@test.com',
 'custom_info => 'Some custom'

 ];
 $response = $this->client->messages()->create($messageAttributes);
 $message = $response->message;
print_r($message);

// Get Web Forms list

$indexParams = [
 'page' => 0,
 'per_page' => 5
 ];
 $response = $this->client->web_forms()->getIndex($indexParams);