btrade 0.0.2 → 0.0.3
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 -2
- 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: 1b83550942ecd32c360910602d685a14a1532183
|
4
|
+
data.tar.gz: a815e0aec6fea7fb3b054569fbeb5be64626b8fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29683423d919576f68876a31c45268ba1eb00fc9c5fb920aabfd0a34acb07b19a1d2076b622d7079f7553c7a6491f26be0603bcc33fbb6a1ece410a96ef7ab07
|
7
|
+
data.tar.gz: aa760982ea4ed35a113fd6e102330f2b00a7a4539237d821c927012cd33be1cb16772b124ece8d60b179b2081e3e09dfc43ea9c608a051ed520ae92c0196646f
|
data/lib/btrade.rb
CHANGED
@@ -19,11 +19,11 @@ 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
|
22
|
+
def get_auth_url(request_token)
|
23
23
|
"https://us.etrade.com/e/t/etws/authorize?key=#{escape(@@consumer.key)}5&token=#{request_token.token}"
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
26
|
+
def get_request_token
|
27
27
|
@@consumer.get_request_token()
|
28
28
|
end
|
29
29
|
|