Skip to content

Merge from intercom origin#1

Open
davidsickmiller wants to merge 49 commits into
masterfrom
merge-from-intercom-origin
Open

Merge from intercom origin#1
davidsickmiller wants to merge 49 commits into
masterfrom
merge-from-intercom-origin

Conversation

@davidsickmiller

Copy link
Copy Markdown

I believe this will bring us up to date with the last two years of changes from intercom/intercom-php.

angelo-intercom and others added 30 commits April 9, 2018 17:00
This `$json` parameter passed as a Guzzle `json` request option is intended to be an `array` as referenced in the calling Intercom endpoint classes.
This change introduces a new `archiveUser` method, and updates the
`deleteUser` method to alias it.

Additionally the change introduces a new `permanentlyDeleteUser`
that leverages a `POST` to `user_delete_requests` to initiate
a permanent delete from the intercom api.

Addresses: intercom#249
…type-for-json

Update docblock type for `$json` parameter
* Fix readme examples styling

* Fix code styling issues
* Adding info on delete and archive updates in README

* Fix comment block
* Add Intercom\Test namespace to all the tests

* Enforce PSR2 by CI

* Fix PHPUnit imports

* Import PHPUnit_Framework_TestCase
Co-Authored-By: murtron <[email protected]>
* Upgrade to PHP 7

* Update README.md

Co-Authored-By: GabrielAnca <[email protected]>
* Add http-plug and remove guzzle

* Move client initialization to the constructor

* Allow HTTP Plug 1.0 or 2.0

* Update tests

* Clarify readme

* Update error handling section in README

* Rename setClient to setHttpClient

* Minor improvements

* Fix exception handling

* Change client implementation link in readme
vojtech-dobes and others added 19 commits March 28, 2019 12:57
Co-Authored-By: Gabriel Anca Corral <[email protected]>
Co-Authored-By: Gabriel Anca Corral <[email protected]>
…ercom#287)

* Add support for listing users of a company

* Remove unneeded method and add to readme

* Remove unneeded test
Adding missing tag above visitors section so it's not inside the codeblock.
Co-authored-by: Gabriel Anca Corral <[email protected]>
* Abstract to IntercomResources.

* Fix comment.

Co-authored-by: Gabriel Anca Corral <[email protected]>
Co-authored-by: Gabriel Anca Corral <[email protected]>
* Prefer assertSame instead of assertEquals.

* Use assertIsArray.

* Use assertSame instead of assertTrue.

* Fix expected and actual.

* Create the client mock in an abstract TestCase.

* Update test/TestCase.php

Co-Authored-By: Gabriel Anca Corral <[email protected]>

* Update test/IntercomClientTest.php

Co-Authored-By: Gabriel Anca Corral <[email protected]>

Co-authored-by: Gabriel Anca Corral <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.