Skip to content

Releases: zendesk/zendesk_api_client_php

v2.0.2

12 Oct 03:04
Compare
Choose a tag to compare

Bugfix for findAll to allow passing of parameters

v2.0.1

10 Oct 07:31
Compare
Choose a tag to compare

Bug fix. Added the missing ticket fields resource.

v2.0.0

09 Oct 02:33
Compare
Choose a tag to compare

Version 2 is a complete rewrite of the PHP API Client with the following goals in mind:

  • Make the tests run faster. Which means mocking the API calls, reducing the number of tests and making them easier to write.
  • Make the code as DRY (Do not Repeat Yourself) as possible and improve maintainability.
  • Improve the way we handle chaining.
  • Better handling of routes.
  • Handle errors well.

Changed:

  • Only use plural resource name
  • Added a base class for resources
  • Added findMany method
  • Added createMany method
  • Added updateMany method, supports both ways of updating
  • Added deleteMany method
  • Change update so that it takes an ID as first param
  • Change delete so that it takes an ID
  • Change interface of find to just take ID, then params
  • Add property chained properties to store all previous chained calls
  • Removed setting of last ID on instantiation of Resource
  • Allowed pattern $client->tickets(id)->find() for consistency with chaining pattern
  • Make $id in delete and update optional to allow passing of the id via chaining pattern
  • Remove filtering of allowed query parameters on GET requests
  • Let Guzzle do the bulk of handling API response exceptions

Improvements:

  • Added pagination examples and upgrade guide to README
  • Better sample codes, improved existing ones and added samples for OAuth flows
  • OAuth now uses Guzzle to request for an access token
  • Build passes tests using PHP7-RC2

Version 2 Beta-2

24 Sep 07:22
Compare
Choose a tag to compare
Version 2 Beta-2 Pre-release
Pre-release

Improvements:

  • Added pagination examples and upgrade guide to README
  • Better sample codes, improved existing ones and added samples for OAuth flows
  • OAuth now uses Guzzle to request for an access token
  • Build passes tests using PHP7-RC2

Changes:

  • Remove filtering of allowed query parameters on GET requests
  • Let Guzzle do the bulk of handling API response exceptions

Version 2 Beta

03 Aug 04:29
Compare
Choose a tag to compare
Version 2 Beta Pre-release
Pre-release

Version 2 beta is a complete rewrite of the PHP API Client with the following goals in mind:

Make the tests run faster. Which means mocking the API calls, reducing the number of tests and making them easier to write.
Make the code as DRY (Do not Repeat Yourself) as possible and improve maintainability.
Improve the way we handle chaining.
Better handling of routes.
Handle errors well.

Changed:

  • Added a base class for resources
  • Added findMany method
  • Added createMany method
  • Added updateMany method, supports both ways of updating
  • Added deleteMany method
  • Change update so that it takes an ID as first param
  • Change delete so that it takes an ID
  • Change interface of find to just take ID, then params
  • Add property chained properties to store all previous chained calls
  • Removed setting of last ID on instantiation of Resource
  • Allowed pattern $client->ticket(id)->find() for consistency with chaining pattern
  • Make $id in delete and update optional to allow passing of the id via chaining pattern

Forums

  • remove CRUD methods - (most methods)
  • no unique case so test is empty

Tickets

  • markAsSpam() now only accepts an int value for an ID or an array of ID's
  • Can no longer do $client->tickets(["organization_id" -> 1231])->findAll(), etc. (also user_id)

Topics

  • removed Topics::create() - was implementing lastId
  • remove Topics::findAll() - can no longer do $client->users(123)->topics()->findAll()

UserFields

  • Remove CRUD methods

Users

  • Remove tickets(), identities(), and other relational methods