Authentication key are consumer key,Consumer Secret,Access Token,Token Secret
This is not a question
how to fetch data from restapi by passing authentication key
Do you want to get the users' information from the request header?
OAuthRequest client = OAuthRequest.ForClientAuthentication("Consumer Key", "Consumer Secret", "Access Token", "Token Secret");
client.RequestUrl = "https://.......";
string auth = client.GetAuthorizationHeader();
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(client.RequestUrl);
request.Headers.Add ("Authorization", auth);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Exception:System.Net.WebException: 'The remote server returned an error: (401) UNAUTHORIZED.'
How to sole the problem
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies