We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is not possible to create a Template with friendly name using PHP library version 8.3.4
$sid = getenv("TWILIO_ACCOUNT_SID"); $token = getenv("TWILIO_AUTH_TOKEN"); $twilio = new Client($sid, $token); $twilio->content->v1->contents->create( ContentModels::createContentCreateRequest( [ 'friendlyName' => 'my_template_friendly_name, 'language' => 'en', 'types' => [ 'twilio/text' => [ 'body' => 'this is a example body, ], ], ], ),
friendly_name not provided
I think that the problem is in ContentCreateRequest file because the serialization is with camelCase instead snake_case
ContentCreateRequest
problem
public function jsonSerialize(): array { return [ 'friendlyName' => $this->friendlyName, 'variables' => $this->variables, 'language' => $this->language, 'types' => $this->types ]; }
solution
public function jsonSerialize(): array { return [ 'friendly_name' => $this->friendlyName, 'variables' => $this->variables, 'language' => $this->language, 'types' => $this->types ]; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue Summary
It is not possible to create a Template with friendly name using PHP library version 8.3.4
Steps to Reproduce
friendly_name not provided
appears as a nameTechnical details:
Hints
I think that the problem is in
ContentCreateRequest
file because the serialization is with camelCase instead snake_caseproblem
solution
The text was updated successfully, but these errors were encountered: