btrade 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/btrade.rb +6 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38d49fc3fb72f7005d9482cb34029e48c3a71722
4
- data.tar.gz: b34d254b66c81df791ffe6b7171b123bfd474333
3
+ metadata.gz: f748ad6a5904fdc4793ba65e73ab2792a7a0dc71
4
+ data.tar.gz: df6f578c0229dbe6efdba951853d80ec1c090b9e
5
5
  SHA512:
6
- metadata.gz: 86c5cee630b8228ce718c3dcfc06b187222bce8f0741811410e7ee5115956c159963010f69f118878050b59f789b5364263fb74ead69a72b9f47f49cbb432197
7
- data.tar.gz: 4735d99d37fb2c2c574f8af2f76bc1104cde4624a79b8ca1dea70d36a4850d017bd8e4fb0084ee4d50ea4eac7b4d2bbaafba4121a49f4106eebcf4e7f662f111
6
+ metadata.gz: 60283f1214c143dfd0583bcabcfd00d6defa54b99922257e1645687dd531c7af70231be6713cd9727972f1bbccb378ae6b72653f093b3601e1df903ea0f3627c
7
+ data.tar.gz: 8737116feb0fa770d929c99ffdc4b72b3dcfff159e50b45380c50ff850e4c43cc3ae1b1f15a4c49db88d03bf2685193554029aff5f546c6206bac69207c264bf
@@ -19,6 +19,12 @@ module Btrade
19
19
  @@consumer = OAuth::Consumer.new(consumer_key[:token], consumer_key[:secret], {:site => "https://etws.etrade.com", :http_method => :get})
20
20
  end
21
21
 
22
+ def self.get_auth_url
23
+ token = @@consumer.get_request_token()
24
+
25
+ "https://us.etrade.com/e/t/etws/authorize?key=#{escape(@@consumer.key)}5&token=#{token.token}"
26
+ end
27
+
22
28
  def self.get_request_token
23
29
  @@consumer.get_request_token()
24
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: btrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Adamson