strongmind-platform-sdk 3.14.0 → 3.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +3 -0
- data/lib/platform_sdk/bynder/client.rb +6 -0
- data/lib/platform_sdk/power_school/client.rb +9 -0
- data/lib/platform_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e99ce0dc9fc488aa170bcc143f2140e56b090b62ab2d1614730996b5df3ed5b6
|
4
|
+
data.tar.gz: 49c84f4c4cb59644bfd19ba160ff14a2522c8cba2fa47ec9c3c8dadce33f484e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49e61365d2860b0fa2825c4020f2c9f950f7f0004de203cc0139ab1480aa655cb31b3106cb722b4465ffb0dc0a76307dae203a62f934e62cc8e42999f96e2d34
|
7
|
+
data.tar.gz: 2db24323974a34b99a3b7088df7211a824cb31d33761c699422971555c229b1f4b35284fdf73aaeeb66e1b7a941c5f7986a23d24b1d20b2ceca0471bf0d7a798
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
strongmind-platform-sdk (3.14.
|
4
|
+
strongmind-platform-sdk (3.14.2)
|
5
5
|
aws-sdk-secretsmanager (~> 1.66)
|
6
6
|
faraday (~> 2.5, >= 2.5.2)
|
7
7
|
faraday-retry
|
@@ -26,11 +26,11 @@ GEM
|
|
26
26
|
public_suffix (>= 2.0.2, < 6.0)
|
27
27
|
ast (2.4.2)
|
28
28
|
aws-eventstream (1.3.0)
|
29
|
-
aws-partitions (1.
|
29
|
+
aws-partitions (1.924.0)
|
30
30
|
aws-sdk-cloudwatch (1.90.0)
|
31
31
|
aws-sdk-core (~> 3, >= 3.193.0)
|
32
32
|
aws-sigv4 (~> 1.1)
|
33
|
-
aws-sdk-core (3.
|
33
|
+
aws-sdk-core (3.194.1)
|
34
34
|
aws-eventstream (~> 1, >= 1.3.0)
|
35
35
|
aws-partitions (~> 1, >= 1.651.0)
|
36
36
|
aws-sigv4 (~> 1.8)
|
data/README.md
CHANGED
@@ -113,3 +113,6 @@ Create IdMapper Client:
|
|
113
113
|
|
114
114
|
Create Pencil Spaces Client:
|
115
115
|
`pencil_spaces_client = PlatformSdk::PencilSpaces::Client.new('BASE_URL', 'BEARER_TOKEN')`
|
116
|
+
|
117
|
+
Create Bynder Client:
|
118
|
+
`bynder_client = PlatformSdk::Bynder::Client.new('https://strongmind.getbynder.com/', 'API_TOKEN')`
|
@@ -11,6 +11,12 @@ module PlatformSdk
|
|
11
11
|
@conn = conn || build_connection
|
12
12
|
end
|
13
13
|
|
14
|
+
def assets(query_params = {})
|
15
|
+
resource_path = "/api/v4/media"
|
16
|
+
response = get(resource_path, query_params)
|
17
|
+
response.body
|
18
|
+
end
|
19
|
+
|
14
20
|
def asset(asset_id)
|
15
21
|
resource_path = "/api/v4/media"
|
16
22
|
response = get(resource_path, { id: asset_id })
|
@@ -37,6 +37,14 @@ module PlatformSdk
|
|
37
37
|
@conn.get(path, params).body
|
38
38
|
end
|
39
39
|
|
40
|
+
def post(path, params = nil)
|
41
|
+
@conn.post(path, params).body
|
42
|
+
end
|
43
|
+
|
44
|
+
def put(path, params = nil)
|
45
|
+
@conn.put(path, params).body
|
46
|
+
end
|
47
|
+
|
40
48
|
def special_programs
|
41
49
|
records_as_json = power_query("specialprograms")
|
42
50
|
records_as_json.map { |record| SpecialProgram.new(record) }
|
@@ -58,6 +66,7 @@ module PlatformSdk
|
|
58
66
|
def scrub_query(query_name)
|
59
67
|
raise PowerQueryNotValid unless valid_power_query_names.include?(query_name)
|
60
68
|
end
|
69
|
+
|
61
70
|
end
|
62
71
|
end
|
63
72
|
end
|
data/lib/platform_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongmind-platform-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.14.
|
4
|
+
version: 3.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platform Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|