2017 © Pedro Peláez
 

library freshdesk-api

PHP API library for Freshdesk

image

silktide/freshdesk-api

PHP API library for Freshdesk

  • Monday, November 6, 2017
  • by andywaite
  • Repository
  • 4 Watchers
  • 2 Stars
  • 826 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 167 % Grown

The README.md

Freshdesk API client

Build Status Code Climate Test Coverage, (*1)

A PHP API client for the Freshdesk API., (*2)

Installation

composer require silktide/freshdesk-api

Usage

This library was built with dependency injection (DI) in mind, but a factory is included for your convenience should you prefer., (*3)

With DI

The client class has 5 dependencies:, (*4)

  1. Instance of GuzzleHttp\Client
  2. Instance of Silktide\FreshdeskApi\ResponseFactory
  3. Your Freshdesk domain (e.g. 'https://mydomain.freshdesk.com')
  4. Your API key or username
  5. Your password (optional, omit if using API key)

Without DI

$client = \Silktide\FreshdeskApi\ClientFactory::create('https://mydomain.freshdesk.com', 'myApiKeyOrUsername', 'password');

Password is optional and should be omitted if you're using an API key., (*5)

Supported requests

Currently, this library only supports submitting a ticket., (*6)

$client->submitTicket(
    'A message',
    'A subject',
    'email@domain.com',
    \Silktide\FreshdeskApi\Constant::PRIORITY_MEDIUM, // Defaults to low if omitted
    \Silktide\FreshdeskApi\Constant::STATUS_OPEN // Defaults to open if omitted
);

The Versions

06/11 2017

dev-master

9999999-dev

PHP API library for Freshdesk

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Andrew Waite

02/12 2015

dev-new-endpoints

dev-new-endpoints

PHP API library for Freshdesk

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Andrew Waite

02/12 2015

0.1.1

0.1.1.0

PHP API library for Freshdesk

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Andrew Waite

02/12 2015

0.1.0

0.1.0.0

PHP API library for Freshdesk

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Andrew Waite