{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/537","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/537/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/537/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/537","id":59364657,"number":537,"title":"GoogleAuthorizationCodeTokenRequest  gives me error NetworkOnMainThread","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T23:08:13Z","updated_at":"2015-02-28T23:08:14Z","closed_at":"2015-02-28T23:08:14Z","body":"```\nVersion of google-api-java-client (e.g. 1.5.0-beta)?1.9.0-beta\n\n\nJava environment (e.g. Java 6, Android 2.3, App Engine)?Android 4.0.3\n\n\nDescribe the problem.\nI am trying to implement Youtube app. after authorization in the webpage is \nsuccessful i am trying to get the Authorizationcode using the API \n\"GoogleAuthorizationCodeTokenRequest.execute\".\n\nwhen i try to run this code in a seperate thread also it is giving me an \nException \"NetworkOnMainThread\". If i am running it in a AsyncTask it is \nworking properly.\n\n\nHow would you expect it to be fixed?\nHow to tun the above API with out getting the above exception in a seperate \nthread\n\n```\n\nOriginal issue reported on code.google.com by `kamesh.S...@gmail.com` on 21 Jun 2012 at 4:06"},"comment":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/comments/76555571","html_url":"https://github.com/chrsmith/google-api-java-client/issues/537#issuecomment-76555571","issue_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/537","id":76555571,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T23:08:14Z","updated_at":"2015-02-28T23:08:14Z","body":"```\nThank you for the reply...\n\nAs per the documentation i found that for the services other than \"youtube\" \ngoogle providing the libraries to get the data uasing the key(the key which we \nare getting after user authorization. But i am not able find the libs which i \nshould use for \"youtube\" app developement. can u share me the libs to get the \ndata which i can use the with the key we are getting using the account manager.\n\nIt is very important task for me...\n\n\n```\n\nOriginal comment by `kamesh.S...@gmail.com` on 14 Jul 2012 at 8:22"}}