{"action":"closed","issue":{"url":"https://api.github.com/repos/Roenke/opencorpora-mobile/issues/13","labels_url":"https://api.github.com/repos/Roenke/opencorpora-mobile/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Roenke/opencorpora-mobile/issues/13/comments","events_url":"https://api.github.com/repos/Roenke/opencorpora-mobile/issues/13/events","html_url":"https://github.com/Roenke/opencorpora-mobile/issues/13","id":120455246,"number":13,"title":"Получать токен авторизации для пользователя","user":{"login":"Roenke","id":7608535,"avatar_url":"https://avatars.githubusercontent.com/u/7608535?v=3","gravatar_id":"","url":"https://api.github.com/users/Roenke","html_url":"https://github.com/Roenke","followers_url":"https://api.github.com/users/Roenke/followers","following_url":"https://api.github.com/users/Roenke/following{/other_user}","gists_url":"https://api.github.com/users/Roenke/gists{/gist_id}","starred_url":"https://api.github.com/users/Roenke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roenke/subscriptions","organizations_url":"https://api.github.com/users/Roenke/orgs","repos_url":"https://api.github.com/users/Roenke/repos","events_url":"https://api.github.com/users/Roenke/events{/privacy}","received_events_url":"https://api.github.com/users/Roenke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-04T18:09:01Z","updated_at":"2015-12-15T00:18:03Z","closed_at":"2015-12-15T00:18:03Z","body":"Нужно научить приложение делать запрос к API получать токен, и сохранять его в Account Manager. \r\nПосле этого можно из любого места программы можно будет этот токен получить получить.\r\n\r\nНужно учитывать,что токен нужно получать не в потоки с activity, т.к. он может в любой момент завершиться. Так же нельзя его получать из потока созданного с помощью activity. Для запроса лучше всего воспользоваться сервисом"}}