title: How to obtain android app version code using Google Api?
body: <p>My desktop app used www.google.com/accounts/ClientLogin (which currently unavailable) to obtain authentification token, that i used to get android application info from unofficial market api (<a href="https://androidquery.appspot.com/api/market?app=(put" rel="nofollow">https://androidquery.appspot.com/api/market?app=(put</a> the package name here))</p>
  
  <p>Now Google want me to use OAuth authorization because ClientLogin deprecated and response 404 all time.</p>
  
  <p>So question is - how can i get android application info by "appId" (just version code for example - "23") using OAuth 2.0 and Google Client Api Libraries for .NET?</p>
  
  <p>And another question - how i can manually generate this request</p>
  
  <p>POST "<a href="https://accounts.google.com/o/oauth2/token" rel="nofollow">https://accounts.google.com/o/oauth2/token</a> HTTP/1.1"</p>
  
  <p>User-Agent: google-api-dotnet-client/1.9.3.19379 (gzip)</p>
  
  <p>Content-Type: application/x-www-form-urlencoded</p>
  
  <p>Host: accounts.google.com</p>
  
  <p>Content-Length: 750</p>
  
  <p>Connection: Keep-Alive</p>
  
  <p>assertion=?</p>
  
  <p>I can see in Fiddler how this request send from google lib? but it stores the response inside lib and i can't access to auth token:</p>
  
  <p>{
    "access_token" : "TOKEN_HERE",
    "token_type" : "Bearer",
    "expires_in" : 3600
  }</p>
  
  <p>???</p>