[BUG] client.flex_api.v2 is removed
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 1.4k
- Forks
- 472
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 5
Description
Describe the bug
Twilio::REST::FlexApiBase#v2 method was removed in 7.10.4
Code snippet
::Twilio::REST::Client.new(credentials.account_sid, credentials.auth_token).flex_api.v2.web_channels.create.create(
chat_friendly_name:,
customer_friendly_name:,
address_sid: credentials.address_sid,
pre_engagement_data: MultiJson.dump(conversation_id:)
)
Actual behavior
NoMethodError is raised
Expected behavior
Initialization of Twilo::REST::FlexApi::V2 object during calling of FlexApi#v2 method
twilio-ruby version
7.10.4
Ruby version
3.4.9
Logs or error messages
undefined method 'v2' for an instance of Twilio::REST::FlexApi (NoMethodError)
Additional context
As temporary solution I had to init Twilo::REST::FlexApi::V2 manually.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Twilio::REST::FlexApi#v2 entry point and compare it with the linked 7.10.4 removal. Reproduce the NoMethodError using the provided client call, then verify that calling FlexApi#v2 initializes a Twilio::REST::FlexApi::V2 object and allows the web_channels operation to proceed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100