theoldreader 0.0.2 → 0.0.3

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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Theoldreader
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theoldreader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: