strongmind-platform-sdk 3.13.0 → 3.14.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7cc5a4eab7ad8d78e42f793589d0eea74456c49ba2d19c7fca8a625885dba49
4
- data.tar.gz: bc0e8272963502db908a3166262e6fd7653f4c532fd42a87283c4039d11e00b6
3
+ metadata.gz: 9e03ad389d3011c33bc8aeade54a639e587073ba99bbb45e7e3d0a1a55515035
4
+ data.tar.gz: 39b74ba1a00416570e1ad89d1b39e0e3cb6bf3a55ba60599c6a0d1a05044afe9
5
5
  SHA512:
6
- metadata.gz: 57efaea3bfc9de8fec62caea8d3e35f8561304a3e23f386381272cd81363e5b144e630870a4809298015b527ea02af932ba79c5a2cc5696c849b1e92716b3bd7
7
- data.tar.gz: 30d6c36e977fe7fa60e4928e7dec255160551ffe51e80669387346c797f9adfb389c946e5dc89117a62fb72b561d89ffba6f0699d777c7c9222bad2350c611d3
6
+ metadata.gz: 4569d716be6481e1cb732ba6b779c2ca3db2aaff05d1bfbdbf6d84b81dbfee172ed8135d18dc12b7adb4b1daa65e99b8be194947034a7831a40af9617caf844d
7
+ data.tar.gz: c7de12218c000b30bc18f276d154f8b0936fb67f9266744c2dda547a4d47b9a7ddceb3203268f43c77a248a97e40d67ec6a2ed9fb303187204211db3872e0773
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.13.0)
4
+ strongmind-platform-sdk (3.14.1)
5
5
  aws-sdk-secretsmanager (~> 1.66)
6
6
  faraday (~> 2.5, >= 2.5.2)
7
7
  faraday-retry
@@ -110,7 +110,7 @@ GEM
110
110
  ruby2_keywords (0.0.5)
111
111
  sentry-ruby (5.16.1)
112
112
  concurrent-ruby (~> 1.0, >= 1.0.2)
113
- sidekiq (7.2.2)
113
+ sidekiq (7.2.4)
114
114
  concurrent-ruby (< 2)
115
115
  connection_pool (>= 2.3.0)
116
116
  rack (>= 2.2.4)
@@ -118,7 +118,7 @@ GEM
118
118
  strongmind-oneroster-client (2.0.3)
119
119
  json (~> 2.1, >= 2.1.0)
120
120
  typhoeus (~> 1.0, >= 1.0.1)
121
- strongmind-sidekiq-cloudwatchmetrics (2.6.1)
121
+ strongmind-sidekiq-cloudwatchmetrics (2.6.3)
122
122
  aws-sdk-cloudwatch (~> 1.6)
123
123
  sidekiq (>= 5.0, < 8.0)
124
124
  sys-uname (1.2.3)
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 })
@@ -31,6 +31,12 @@ module PlatformSdk
31
31
  @conn.post("/ws/schema/query/com.strongmind.#{query_name}?pagesize=#{page_size}", params).body["record"]
32
32
  end
33
33
 
34
+ def get(path, params = nil, expansions = nil)
35
+ params ||= {} if expansions
36
+ params[:expansions] = expansions.join(",") if expansions
37
+ @conn.get(path, params).body
38
+ end
39
+
34
40
  def special_programs
35
41
  records_as_json = power_query("specialprograms")
36
42
  records_as_json.map { |record| SpecialProgram.new(record) }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.13.0"
4
+ VERSION = "3.14.1"
5
5
  end
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.13.0
4
+ version: 3.14.1
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-04-24 00:00:00.000000000 Z
11
+ date: 2024-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday