-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from zendesk/v2
V2 - Rewrite of the PHP API Client
- Loading branch information
Showing
258 changed files
with
10,817 additions
and
15,171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
language: php | ||
php: | ||
- 5.6 | ||
- 5.5 | ||
# - 5.4 | ||
# - hhvm | ||
before_script: composer self-update && composer install | ||
script: phpunit --testsuite "Zendesk API Unit Test Suites" | ||
install: | ||
- travis_retry composer self-update && composer install | ||
script: | ||
- vendor/bin/phpunit --testsuite "Zendesk API Unit Test Suites" | ||
- vendor/bin/phpcs --extensions=php --standard=PSR2 --report=summary -np src/ tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Changed: | ||
|
||
* on tickets, can no longer do $client->tickets(["organization_id" -> 1231])->findAll(), etc. (also user_id) | ||
* separate findMany method | ||
* change interface of find to just take ID, then params | ||
* added updateMany method, support both ways of updating | ||
* change update so that it takes ID as first param | ||
* change delete so that it takes id | ||
* add deleteMany method to tickets | ||
* 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 | ||
|
||
Topics | ||
* removed Topics::create() - was implementing lastId | ||
* remove Topics::findAll() - can no longer do $client->users(123)->topics()->findAll() | ||
|
||
UserFields | ||
* remove CRUD methods | ||
|
||
Forums | ||
* remove CRUD methods - (most methods) | ||
* no unique case so test is empty | ||
|
||
Tickets | ||
* markAsSpam method now only accepts an int value for an ID or an array of ID's | ||
|
||
Users | ||
* Remove tickets, identities, and other relational methods |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
{ | ||
"name": "zendesk/zendesk_api_client_php", | ||
"description": "PHP Client for Zendesk REST API. See http://developer.zendesk.com/api-docs", | ||
"license": "Apache License Version 2.0", | ||
"homepage": "https://github.com/zendesk/zendesk_api_client_php", | ||
"require": { | ||
"php": ">=5.3.1" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "4.5.*", | ||
"squizlabs/php_codesniffer": "2.*", | ||
"phpmd/phpmd" : "@stable", | ||
"internations/http-mock": "dev-master" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"Zendesk\\API\\": "src/" | ||
} | ||
"name": "zendesk/zendesk_api_client_php", | ||
"description": "PHP Client for Zendesk REST API. See http://developer.zendesk.com/api-docs", | ||
"license": "Apache License Version 2.0", | ||
"version": "2.0.0-beta", | ||
"homepage": "https://github.com/zendesk/zendesk_api_client_php", | ||
"require": { | ||
"php": ">=5.3.1", | ||
"guzzlehttp/guzzle": "~6.0", | ||
"mmucklo/inflect": "0.3.*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "4.5.*", | ||
"squizlabs/php_codesniffer": "2.*", | ||
"phpmd/phpmd": "@stable", | ||
"fzaninotto/faker": ">=1.5.0" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"Zendesk\\API\\": "src/" | ||
} | ||
} | ||
} |
Oops, something went wrong.