dschn-twitter_oauth 0.1.20.1 → 0.1.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/twitter_oauth/account.rb +5 -0
  2. metadata +1 -1
@@ -8,6 +8,11 @@ module TwitterOAuth
8
8
  return oauth_response.class == Net::HTTPOK
9
9
  end
10
10
 
11
+ def authorized_with_response?
12
+ oauth_response = access_token.get('/account/verify_credentials.json')
13
+ return [oauth_response.class == Net::HTTPOK, JSON.parse(oauth_response.body)]
14
+ end
15
+
11
16
  # Returns client info
12
17
  def info
13
18
  oauth_response = access_token.get('/account/verify_credentials.json')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dschn-twitter_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20.1
4
+ version: 0.1.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Taylor