InstanceResource
properties are camelCase
, leading to confusion against snake_case
API documentation
#743
Labels
status: help wanted
requesting help from the community
type: community enhancement
feature request not on Twilio's roadmap
The Twilio API documentation shows PHP examples with return structures containing properties that are
snake_case
:https://www.twilio.com/docs/usage/api/applications
Yet these properties are transformed into
camelCase
, leading to confusion when transforming these instances->toArray()
and expecting the same response that the API documentation displays:twilio-php/src/Twilio/Rest/Api/V2010/Account/ApplicationInstance.php
Lines 54 to 60 in 10c7f8b
Since the
InstanceResource
classes already use a magic__get()
, could we preserve the structure of the API response in$properties
and then snake the requested$property
?This would also remove the need to parse the payload and
camelCase
all of their properties manually (even though this is automated via your API generation tool).Thanks for your time!
The text was updated successfully, but these errors were encountered: