wolf_core 1.0.12 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c689d50339a0343b7e7572afe9f489fc115523e338ec91db56f3d5eed1c7512
|
4
|
+
data.tar.gz: c3de85d5ace87482ea82a179cc4287007a34fffe62cb781c954064dd84c12b73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1c6b2e7507ce531caf86d59317d0b6894a51258c25db429467c7d2cf412a5965c1b908eda0c6ef55a82465c10dd08e7766bd4deaa829cc1e794a0af920c3e4e
|
7
|
+
data.tar.gz: 49aa889c7d8c6a5bb8b0c4b34f4b27de48d2cccc5b5617f63baccfe74a696a3cbbbfe5fbb23049046ceed951a099ba3a6eb7c582d052453ef9a721557901d54b
|
@@ -6,7 +6,7 @@ module WolfCore
|
|
6
6
|
def fetch_client!(wolf_token:, client_id:, tenant:, wolf_platform_url:, error_message:)
|
7
7
|
response = safe_http_get(
|
8
8
|
headers: { "Authorization" => "Bearer #{wolf_token}" },
|
9
|
-
url: "#{wolf_platform_url}/api/v2/
|
9
|
+
url: "#{wolf_platform_url}/api/v2/companies/#{client_id}",
|
10
10
|
query: { tenant: tenant },
|
11
11
|
error_message: error_message
|
12
12
|
)
|
@@ -17,7 +17,7 @@ module WolfCore
|
|
17
17
|
def fetch_client(wolf_token:, client_id:, tenant:, wolf_platform_url:)
|
18
18
|
response = parsed_http_get(
|
19
19
|
headers: { "Authorization" => "Bearer #{wolf_token}" },
|
20
|
-
url: "#{wolf_platform_url}/api/v2/
|
20
|
+
url: "#{wolf_platform_url}/api/v2/companies/#{client_id}",
|
21
21
|
query: { tenant: tenant }
|
22
22
|
)
|
23
23
|
response_body = response.body
|
@@ -30,7 +30,7 @@ module WolfCore
|
|
30
30
|
safe_http_post(
|
31
31
|
headers: { "Authorization" => "Bearer #{wolf_token}" },
|
32
32
|
query: { tenant: tenant },
|
33
|
-
url: "#{wolf_platform_url}/api/v2/
|
33
|
+
url: "#{wolf_platform_url}/api/v2/companies",
|
34
34
|
body: client,
|
35
35
|
error_message: error_message
|
36
36
|
)
|
@@ -40,7 +40,7 @@ module WolfCore
|
|
40
40
|
parsed_http_post(
|
41
41
|
headers: { "Authorization" => "Bearer #{wolf_token}" },
|
42
42
|
query: { tenant: tenant },
|
43
|
-
url: "#{wolf_platform_url}/api/v2/
|
43
|
+
url: "#{wolf_platform_url}/api/v2/companies",
|
44
44
|
body: client
|
45
45
|
)
|
46
46
|
end
|
@@ -49,7 +49,7 @@ module WolfCore
|
|
49
49
|
safe_http_put(
|
50
50
|
headers: { "Authorization" => "Bearer #{wolf_token}" },
|
51
51
|
query: { tenant: tenant },
|
52
|
-
url: "#{wolf_platform_url}/api/v2/
|
52
|
+
url: "#{wolf_platform_url}/api/v2/companies/#{client_id}",
|
53
53
|
body: client,
|
54
54
|
error_message: error_message
|
55
55
|
)
|
@@ -59,7 +59,7 @@ module WolfCore
|
|
59
59
|
parsed_http_put(
|
60
60
|
headers: { "Authorization" => "Bearer #{wolf_token}" },
|
61
61
|
query: { tenant: tenant },
|
62
|
-
url: "#{wolf_platform_url}/api/v2/
|
62
|
+
url: "#{wolf_platform_url}/api/v2/companies/#{client_id}",
|
63
63
|
body: client
|
64
64
|
)
|
65
65
|
end
|
data/lib/wolf_core/version.rb
CHANGED