Description
I use camel-twilio endpoint:
twilio:account/fetch?password=xxxx&accountSid=xxxx
Password and accountSid parameters are not used because twilio REST client is initialized on Component start but credentials are set on Endpoint.
This results in:
Caused by: com.twilio.exception.ApiException: The requested resource /2010-04-01/Accounts/null.json was not found at com.twilio.rest.api.v2010.AccountFetcher.fetch(AccountFetcher.java:69) ... 15 more
Workaround is set credentials on Component:
TwilioComponent twilioComponent = getContext().getComponent("twilio", TwilioComponent.class); twilioComponent.getConfiguration().setUsername("xxx"); twilioComponent.getConfiguration().setPassword("xxx");
Attachments
Issue Links
- links to