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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 159b5d93581543e942300228779aebce493cc1882cdd40da0d90dd7491a2807b
|
|
4
|
+
data.tar.gz: 5fef153339faa91ab5f16afd56cc357a213a6d5c30617934c8ff43f5788ef1a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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?
|
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.
|
|
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.
|
|
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: []
|