Skip to content

Commit 77e7ebc

Browse files
authored
v0.22.0.pre
### v0.22.0.pre * features * Add at `ScriptTags#all` an optional parameter to retrieve only owner scripts
1 parent bcc876a commit 77e7ebc

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### v0.22.0.pre
2+
3+
* features
4+
* Add at `ScriptTags#all` an optional parameter to retrieve only owner scripts
5+
16
### v0.21.0.pre
27

38
* bug-fixes

lib/beyond_api/resources/script_tags.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class ScriptTags < Base
1313
# -H 'Authorization: Bearer <Access token>'
1414
#
1515
# @option params [Boolean] :paginated
16+
# @option params [Boolean] :only_own
1617
# @option params [Integer] :size the page size
1718
# @option params [Integer] :page the page number
1819
#
@@ -24,6 +25,8 @@ class ScriptTags < Base
2425
def all(params = {})
2526
path = "/script-tags"
2627

28+
params.merge!(client_id: BeyondApi.configuration.client_id) if params[:only_own]
29+
2730
handle_all_request(path, :script_tags, params)
2831
end
2932

lib/beyond_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module BeyondApi
4-
VERSION = "0.21.0.pre"
4+
VERSION = "0.22.0.pre"
55
end

0 commit comments

Comments
 (0)