ruby_desk 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ruby_desk/connector.rb +3 -4
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/ruby_desk/connector.rb
CHANGED
@@ -14,13 +14,10 @@ module RubyDesk
|
|
14
14
|
|
15
15
|
attr_writer :frob
|
16
16
|
|
17
|
-
def initialize(api_key=nil, api_secret=nil,
|
17
|
+
def initialize(api_key=nil, api_secret=nil, api_token=nil)
|
18
18
|
@api_key = api_key
|
19
19
|
@api_secret = api_secret
|
20
|
-
@frob = frob
|
21
20
|
@api_token = api_token
|
22
|
-
@api_key = "991ac77f4c202873b0ab88f11762370c"
|
23
|
-
@api_secret = "c3382d5902e5a7b0"
|
24
21
|
end
|
25
22
|
|
26
23
|
# Sign the given parameters and returns the signature
|
@@ -67,6 +64,8 @@ module RubyDesk
|
|
67
64
|
headers = {
|
68
65
|
'Content-Type' => 'application/x-www-form-urlencoded'
|
69
66
|
}
|
67
|
+
puts "url:"+url.path
|
68
|
+
puts "data:"+data
|
70
69
|
|
71
70
|
case api_call[:method]
|
72
71
|
when :get, 'get' then
|