I am consuming an API with OAuth1.0 authorization. I want to make call to that API with the authorization Oauth header:-
I have created the authorization header from the token/key received from the server using- (ConsumerKey,keyalias and password) and want to send back the token or the OAuth header with the call.
I have did all these things in a Processor(Class implementing Camel Processor) and now want to do:-
- Either call the rest API with this Oauth header(of type String) in the processor itself.
- Else send this header in exchange and get this value in camel's
to()
endpoint and then in it call the REST API.
Thing is i just want to make rest a call in processor with Oauth header.
And then if possible try to access the header in to()
endpoint and make the call.