zendesk / zendesk_api_client_php

Official Zendesk API v2 client library for PHP
336 stars 259 forks source link

Rename findTwicket() to findTwitterTicketStatus() #367

Closed OAFCROB closed 5 years ago

OAFCROB commented 6 years ago

Should [findTwicket()|https://github.com/zendesk/zendesk_api_client_php/blob/master/src/Zendesk/API/Resources/Core/Tickets.php#L116] be rename to be a bit more descriptive to something like findTwitterTicketStatus() as it's not obvious to what it's doing. Or put in an @see https://developer.zendesk.com/rest_api/docs/core/twitter_channel#getting-twicket-status.

At a glance it looks like there is a spelling mistake for this and it should be findTicket but after reading the comments I understood what it was doing. However, when comparing that to the Zendesk API documentation this is getting the [statuses|https://developer.zendesk.com/rest_api/docs/core/twitter_channel#getting-twicket-status.]

I also couldn't find an test coverage for this method. I would be happy to look into making the change, but wanted to see if this is something that would be of interest.

joseconsador commented 6 years ago

Hi @OAFCROB , That is correct, looks like this method was not updated when we switched to v2. Of course, pull requests are always welcome

OAFCROB commented 5 years ago

@joseconsador sorry I totally missed this, put in a PR for the change.

donjose24 commented 5 years ago

Hello! the findTwicket was intended. these are tickets that originated from twitter

Thanks!