title: Google Contacts API - After getting the access token (oauth)
body: <p>I managed to get the access token for google's contacts API but when i try to make a call to retrieve the logged in user's profile, i get a 401 unauthorized error... </p>
  
  <p>I did some research and followed the steps mentioned in "various" google documentations ( like <a href="http://code.google.com/apis/contacts/docs/3.0/developers_guide.html" rel="nofollow">this one</a> and <a href="http://code.google.com/apis/accounts/docs/OAuth2WebServer.html" rel="nofollow">this one</a> and many others) but with no use... </p>
  
  <p>So far i think i'm signing the request wrong. Here's what i'm doing after i get the access token.</p>
  
  <pre><code>string outUrl,querystring;
  string sig = oAuth.GenerateSignature(new Uri("https://www.google.com/m8/feeds/contacts/default/full"), Server.UrlEncode(oAuth.ConsumerKey), oAuth.ConsumerSecret, oAuth.Token, null, "GET", timeStamp, nonce, out outUrl, out querystring);
  string reqURL = "https://www.google.com/m8/feeds/contacts/default/full?access_token=" + oAuth.Token + "&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_signature=" + Server.UrlEncode(sig) + "&amp;oauth_consumer_key=" + oAuth.ConsumerKey + "&amp;oauth_timestamp=" + timeStamp + "&amp;oauth_nonce=" + nonce + "&amp;oauth_version=1.0";
  response = oAuth.WebRequest(oAuthGoogle.Method.GET, reqURL, String.Empty);
  </code></pre>
  
  <p>The 401 error appears when send the request using oAuth.WebRequest() (the last line of the code above)</p>
  
  <p>I just need to get rid of the 401 error...I'm using ASP.NET/C#. Any help would be appreciated. Thank you...</p>