authentise 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authentise/api/print.rb +1 -2
- data/lib/authentise/api/users.rb +2 -0
- data/lib/authentise/version.rb +1 -1
- 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: 3b6afe61dda050f1f2f3c824094a955283fd65cb
|
4
|
+
data.tar.gz: e74ca3c9eb0e435355fb56ca74a251d5049b5044
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b987be80ec91669d0ee14907b4a0e6d0ce1c8b8ca42abd1238103ce7d57d3b026fcd526a8314ef9e0be39b5e32000387a9ea43a5f13169f259794e4a5c40dd3
|
7
|
+
data.tar.gz: 1bc534d3a936961dd3a245ea647d8767091b9cda000d27ebe6227cd019db29d34d18f2dd44bacb4fbd33c288bef9d1c86929a850f271a776b625c7481fcc7bf0
|
data/lib/authentise/api/print.rb
CHANGED
@@ -20,6 +20,7 @@ module Authentise
|
|
20
20
|
print_value_currency: print_value_currency,
|
21
21
|
partner_job_id: partner_job_id,
|
22
22
|
}.to_json
|
23
|
+
|
23
24
|
RestClient.post(url, body, rest_client_options) do |response, _, _|
|
24
25
|
if response.code == 201
|
25
26
|
{ url: response.headers[:x_token_location] }
|
@@ -29,8 +30,6 @@ module Authentise
|
|
29
30
|
end
|
30
31
|
end
|
31
32
|
|
32
|
-
private
|
33
|
-
|
34
33
|
def rest_client_options
|
35
34
|
{
|
36
35
|
content_type: :json,
|
data/lib/authentise/api/users.rb
CHANGED
@@ -20,6 +20,7 @@ module Authentise
|
|
20
20
|
def create_user(params)
|
21
21
|
url = "https://users.authentise.com/users/"
|
22
22
|
options = {
|
23
|
+
content_type: :json,
|
23
24
|
accept: :json,
|
24
25
|
open_timeout: 2,
|
25
26
|
timeout: 2,
|
@@ -48,6 +49,7 @@ module Authentise
|
|
48
49
|
def create_session(params)
|
49
50
|
url = "https://users.authentise.com/sessions/"
|
50
51
|
options = {
|
52
|
+
content_type: :json,
|
51
53
|
accept: :json,
|
52
54
|
open_timeout: 2,
|
53
55
|
timeout: 2,
|
data/lib/authentise/version.rb
CHANGED