- Minor tweak to avoid any confusion when creating a new
Message
thread and thePersonRef
has acustomer
type instead ofuser
. - Added method to retrieve all the tags (Thanks @crodas and @Vardkin for PRs #61 and #57 respectively)
- Update
composer.json
to use a tagged version ofcodeclimate/php-test-reporter
instead ofdev-master
. - Fix issue where
Conversation
threads default tonull
sogetThreads()
always returnednull
. PR #42 - Fix issue where
PUT
request responses were not decoded to an array similiar toPOST
andDELETE
. PR #49
- Fix issue with setting the value of a dropdown custom field
- Fix bug in the
getCustomer
method for Webhook - Add
status
toSearchConversation
model
- Added support for Custom Fields returned within a Mailbox details
- Added support for Custom Field Responses returned with a Conversation
- Deprecated "Team" reports. With the arrival of "Teams" with the new Plus Plan, the previous "Team" report has been renamed "Company" report
- Added new reports methods:
getCompanyReport
,getCustomersHelpedCompanyReport
,getCompanyDrillDownReport
- Aliased old Team reports:
getTeamReport
->getCompanyReport
,getCustomersHelpedTeamReport
->getCustomersHelpedCompanyReport
,getTeamDrillDownReport
->getCompanyDrillDownReport
- Fixed a bug that threw an error when trying to delete a conversation after fetching it.
- Add
unassign
method to a conversation allowing anyone to be assigned - Updated the README and the
examples/CreateCustomer.php
with examples of catching aHelpScout\ApiException
with errors.
- Added an "expect" default header set to nothing. On some API calls, a dual HTTP status response was being returned. A fix was found here. By overriding the "expect" header, the server responds correctly. This addresses the issue pointed out in #22
- Added support for the new Reports endpoints via Service Descriptions.
- Added ability to add new endpoints via Service Descriptions. SD allow for an endpoint to be declared and configured via a PHP array configuration. This prevents cluttering of too many class methods.
- Fixed a bug with
ApiClient::createAttachment()
that was doing ajson_decode
on an already decoded response. Also updated reference to the response hash to be retrieved via an array interface instead of the previous object method. - Fixed a bug that caused an error when a response didn't have a location header to create a response ID from. If no location header is present, a null value is returned. This addresses the issue pointed out in #21
- Fixed bug in the
conversationSearch
method that routed to the incorrect URI, using "customers" instead of "conversations".
- Added new cURL abstraction wrapper using shuber/curl
- Added dependency injector to allow mocking and testing
- Added tests and fixture data
- Fixed issue where
modifiedAt
was renamed touserModifiedAt
in the API but not the client - Fixed issue to rename type of
unassigned
toopen
. PR #18
- Fixed issue that didn't allow "tag" as a valid search parameter - #13
- Rewrote API error messaging to return more descriptive messages from the server
- Added more robust debugging capabilities - see README
- Fixed issue that would prevent from json from being constructed properly when adding an attachment to an existing thread
- Adding support for missing autoReply and reload params in createConversation. Thanks @bradt
- Clean up phpdocs
- Updated header code logic to look for both "HTTP_" and normal header variations.
- Exposed "openedAt" attribute on Message thread object (which indicates when a customer viewed the message)
- Added support for updating the body text of a thread
- Default Conversation object to active status, 'email' type
- Fixed phpdoc on getUserMe method
- Default threads to their internal types to eliminate the user from having to do so.
- Default threads to active status
- Bug fix to address issue in Webhook.php whereby both internal and external signatures evaluate to false, thus returning an invalid "true" allowing the request to proceed.
- Added support for conversation and customer search endpoints. See developer docs for more information.
- Added function to get the User associated with the API key used to make the request.
- Added endpoint to delete a note.
- Added support for the
getThreadSource
endpoint (to retrieve original email source). See developer docs for more information. - Consistent usage of tabs for indentation (jeffbyrnes)
- Clean up documentation, add DocBlocks for every method of
ApiClient
(jeffbyrnes) - Clarify
model\Mailbox::toRef()
DocBlock (jeffbyrnes)
- Use correct value for all instances of
CURLOPT_SSL_VERIFYHOST
(thanks jeffbyrnes) - Improved attribute handling in model constructors
- Updated to use
require_once
instead ofrequire
(where applicable)
- Fixed use of invalid cURL option
- Update dynamic-custom-app.php example to prevent unauthorized requests from having data sent
- Added composer support
- Added support for workflows (get a list of workflows or run a manual workflow). See developer docs for more information.
- Updated examples.
- When creating a conversation or thread, the createdAt property is correctly set now.
- Fixed a typo that was causing 'closedBy' to not be set properly on a conversation.
- Fixed an issue where a conversation created without a customer id was causing an exception.
- Updated with support for new line item properties (actionType and actionSourceId). See developer docs for more information.
- Conversations and threads can now be marked as 'imported' at creation time.
- Added 'phone' conversation and thread type.
- Added a method to retrieve a list of customers for a mailbox.
- Added examples for write endpoints (create/update conversation, create/update customer).
- Conversation write endpoints added. Conversations can now be created, updated, and deleted. Threads can be created, and attachments can be created and associated with a thread.
- Customer write endpoints added. Customers can now be created and updated.
- Customers can now be searched for by name and/or email.
- Conversation now has a type property that specifies if the type of conversation is an 'email' or 'chat'.
- UserRef and CustomerRef have been removed and replaced by a PersonRef. The PersonRef class has a 'type' property that specifies if the person is a 'user' or a 'customer'.
- A new Chat thread type was added.