theoldreader 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/theoldreader.rb +6 -0
- data/lib/theoldreader/version.rb +1 -1
- metadata +1 -1
data/lib/theoldreader.rb
CHANGED
@@ -14,6 +14,12 @@ module Theoldreader
|
|
14
14
|
Theoldreader::Config.token = token
|
15
15
|
end
|
16
16
|
|
17
|
+
def self.fetch_token(email, password, app_name)
|
18
|
+
Theoldreader::API::Service.instance.make_request(:post, '', {client: app_name,
|
19
|
+
accountType: 'HOSTED_OR_GOOGLE', service: 'reader', Email: email, Passwd: password}, {},
|
20
|
+
{base_path: '/accounts/ClientLogin'}).body
|
21
|
+
end
|
22
|
+
|
17
23
|
def self.status
|
18
24
|
Theoldreader::Base.get({}, endpoint: 'status')
|
19
25
|
end
|
data/lib/theoldreader/version.rb
CHANGED