twilio / twilio-ruby

A Ruby gem for communicating with the Twilio API and generating TwiML
MIT License
1.35k stars 463 forks source link

Regression, missing new_keys method #679

Open woodhull opened 9 months ago

woodhull commented 9 months ago

Issue Summary

After upgrading to ruby library v6, the new_keys method is no longer available.

It is still described in the docs here: https://www.twilio.com/docs/iam/keys/api-key

Code Snippet

subaccount_client.new_keys.create(friendly_name: key_friendly_name)

Exception/Log

      NoMethodError:
        undefined method `new_keys' for #<Twilio::REST::Client:0x00007f95458d5658 @username="ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", @***, @region=nil, @edge=nil, @account_sid="ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", @auth_token="auth_token", @auth=["ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "auth_token"], @http_client=#<Twilio::HTTP::Client:0x00007f953f192a40 @proxy_prot=nil, @ssl_ca_file=nil, @timeout=nil, @adapter=:net_http, @configure_connection_blocks=[]>, @logger=nil, @user_agent_extensions=[]>

Technical details:

Cat-Raphael-scrib commented 8 months ago

SKc14c369f6970d3e9d8f051505c6c6238