# File lib/omniauth/strategies/oauth/type_pad.rb, line 56 def user_hash # For authenticated requests, you have to use header as your scheme. # Failure to do so gives a unique response body - 'Auth is required'. # 'Unauthorized' is the response body of a truly unauthorized request. # Also note that API requests hit a different site than the OAuth dance. r = self.consumer.request(:get, 'https://api.typepad.com/users/@self.json', @access_token, :scheme => 'header') @user_hash ||= MultiJson.decode(r.body) end