Consuming Rest api - Authorization header for Oauth
Hi
I am trying to consume a REST api.
The api uses oauth 1.0 authorization header. how can i build the same? the following code gives an error:
headerMap.put(Authorization,OAuth realm="https://api.yyyy.com/1.1/search/abcd.json",q="test",oauth_consumer_key="CubXzXXXXX",oauth_token="1605380557-gW4XXXXXXXXXXX",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1374470468",oauth_nonce="wn1Are",oauth_version="1.0",oauth_signature="kdCPHM5XXXXXX");
Please help.