title: how to obtain a username from oauth key in twitter
body: <p>I am working with twitter's oauth, and ive run into a weird problem.</p>
  
  <p>How do i get a user's profile information using just their token and secret?</p>
  
  <p>Here is what im using now</p>
  
  <pre><code>    function OauthGetProfile($consumerkey, $consumersecret, $oauthtoken, $oauthsecret){
  
  $to = new TwitterOAuth($consumerkey, $consumersecret, $oauthtoken, $oauthsecret);
  $content = $to-&gt;OAuthRequest('http://twitter.com/statuses/user_timeline.xml', array('count' =&gt; '50'), 'GET');
  
  return $content;
  }
  </code></pre>
  
  <p>Im not sure how to get this, the api calls to get your profile require you specify the persons profile, which i need their ID to do.</p>