publishing_platform_api_adapters 0.14.9 → 0.14.10

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: b8c70f4e749e69eb7b6d11b2e93514ce807f40512161dcfe21719e8bd08a7940
4
- data.tar.gz: 8e6b0b5c157b7d0379ce60548149802320cddc0d49969cbf9f232b3aa22f9e8f
3
+ metadata.gz: 159b5d93581543e942300228779aebce493cc1882cdd40da0d90dd7491a2807b
4
+ data.tar.gz: 5fef153339faa91ab5f16afd56cc357a213a6d5c30617934c8ff43f5788ef1a4
5
5
  SHA512:
6
- metadata.gz: e5d48e58d25ae9189c98fe61a915c6da635e90b10166dceb5ff492960c4bb07280bea72698da5d87cb0a67e5fecfa8ead81e70dca561f29b0c826903d0ff9df6
7
- data.tar.gz: d96557af091d6d88d000858f920163a1a3a402d06f7a7703387a64eeb0fa1c0182fb2ba02130915e771b08cf22b6ab1421ec8b035d04595371726eed93c9fc80
6
+ metadata.gz: a470724b0f1a09d209759808e29bb3425ecd3ec556ab83c27370b0f1bcc314389986c1bbbc49a6ea657de71cba938068728b8e000aa918cd4f83e23128a04257
7
+ data.tar.gz: e3662d609b742f8e5247240c0118cb67cbd0cd23d20448bc8ff44805d6b9c1115ca2cbda3f26fc4e5355c440dac0fbbccd068ccbc61c25f1fd5163fbca661a7d
@@ -253,6 +253,22 @@ class PublishingPlatformApi::PublishingApi < PublishingPlatformApi::Base
253
253
  get_json("#{endpoint}/content#{query}")
254
254
  end
255
255
 
256
+ # Get events for a specific content_id
257
+ #
258
+ # @param content_id [UUID]
259
+ # @param params [Hash]
260
+ #
261
+ # publishing_api.get_events_for_content_id(
262
+ # "7ac47b33-c09c-4c1d-a9a7-0cfef99081ac",
263
+ # { action: "PutContent", from: "2023-01-01T00:00:00Z", to: "2023-01-05T10:00:00Z" }
264
+ # )
265
+ #
266
+ # @return [PublishingPlatformApi::Response] A response containing a list of events for that content ID
267
+ def get_events_for_content_id(content_id, params = {})
268
+ query = query_string(params)
269
+ get_json("#{endpoint}/content/#{content_id}/events#{query}")
270
+ end
271
+
256
272
  # FIXME: Add documentation
257
273
  def get_linkables(document_type: nil)
258
274
  if document_type.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PublishingPlatformApi
4
- VERSION = "0.14.9"
4
+ VERSION = "0.14.10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publishing_platform_api_adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.9
4
+ version: 0.14.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Publishing Platform
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  - !ruby/object:Gem::Version
228
228
  version: '0'
229
229
  requirements: []
230
- rubygems_version: 4.0.17
230
+ rubygems_version: 4.0.18
231
231
  specification_version: 4
232
232
  summary: Adapters to work with Publishing Platform APIs
233
233
  test_files: []