btrade 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/btrade.rb +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c40cdccedf6f62810985542cc59fd68d170fb66a
|
4
|
+
data.tar.gz: ba73cd5f82522d4f26694ac384b21eea5ed831aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c2c3d6bee233f08dfe4ba68cf8b93a5b3e02e74c8e91cbfd386b6973a3a192c66b140a6c121abd554393bee52a1f55c2b8be04a778a5d7b52a1d488f5708878
|
7
|
+
data.tar.gz: b2e69d74719fce147944a3701c2ffa27009b155621984ce228ec4b1ae904505f3aaa0a385d0944ee985bb566bfd2542873040912edc2976fc4e4a7738865a59c
|
data/lib/btrade.rb
CHANGED
@@ -19,10 +19,8 @@ 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
|
-
|
24
|
-
|
25
|
-
"https://us.etrade.com/e/t/etws/authorize?key=#{escape(@@consumer.key)}5&token=#{token.token}"
|
22
|
+
def self.get_auth_url(request_token)
|
23
|
+
"https://us.etrade.com/e/t/etws/authorize?key=#{escape(@@consumer.key)}5&token=#{request_token.token}"
|
26
24
|
end
|
27
25
|
|
28
26
|
def self.get_request_token
|