の発信、発信者IDを更新しようとしていますが、エラーを次のように実行している:Twilio更新発信発信者ID
*** Twilio::REST::RestError Exception: Unable to fetch record: The requested resource /2010-04-01/Accounts/AC...../OutgoingCallerIds/CA......json was not found
私はTwilioのウェブサイト上のドキュメントを次のようだ:
https://www.twilio.com/docs/api/voice/outgoing-caller-ids#get-outgoing-caller-id-details
@caller_id = @client.account
.outgoing_caller_ids('PNe905d7e6b410746a0fb08c57e5a186f3')
.fetch
.outgoing_caller_idsに渡す文字列は何ですか?
が動作します、ありがとうございます。サブアカウントの発信発信者IDを作成/更新する方法も知っていますか? – JohnSmith
サブアカウントの処理を行いたい場合は、アカウントオブジェクトを取得してからアクションを実行することができます。 'account = client.accounts(account_sid).fetch; account.validation_requests.create(電話番号:電話番号) '。 – philnash
サブアカウント用のメッセージングサービスを作成するには、 '@client = Twilio :: REST :: Client.new(account_sid、auth_token) sub_account = @ client.api.accounts.create(friendly_name:friendly_name) service = sub_account.messaging.v1.services.create(friendly_name: "#{friendly_name}") ' – JohnSmith