adobe-campaign 0.4.1 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/adobe/campaign/base.rb +5 -2
- data/lib/adobe/campaign/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: 33214406bbfd854bf6ef0b778f533370fb3fd38b3f8b0d97f2b29b68058c5d2c
|
4
|
+
data.tar.gz: b6dd5720161769e0391dea60c80f86889cf537834acbf9087d9c20b0a3276e68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26a9a465d92b144fa9588a4261266acb938d371a6416d516c48563a4a230c69b0c4e6b11b4cd8960677f9c2e84729238f010539c338f8c90995b979d3876ce08
|
7
|
+
data.tar.gz: 42b6e631e891e33e8c682c3b7cce88a839020f8f811932b59ea8fd940f18850a7ad1e71438128161e0c987ed1e148fc00133e51f1fd1edd7fe6575cf2a11944f
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6.
|
1
|
+
2.6.7
|
data/lib/adobe/campaign/base.rb
CHANGED
@@ -13,6 +13,7 @@ module Adobe
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def find(search_text)
|
16
|
+
search_text = ERB::Util.url_encode(search_text)
|
16
17
|
get_request("#{endpoint}/byText?text=#{search_text}")
|
17
18
|
end
|
18
19
|
|
@@ -51,11 +52,13 @@ module Adobe
|
|
51
52
|
def load_access_token
|
52
53
|
return @access_token if @access_token && @access_token_expires > Time.zone.now
|
53
54
|
|
54
|
-
as_url = "https://#{Adobe::Campaign.configuration.ims_host}/ims/
|
55
|
+
as_url = "https://#{Adobe::Campaign.configuration.ims_host}/ims/token/v3"
|
55
56
|
as_payload = {
|
56
57
|
client_id: Adobe::Campaign.configuration.api_key,
|
57
58
|
client_secret: Adobe::Campaign.configuration.api_secret,
|
58
|
-
|
59
|
+
grant_type: "client_credentials",
|
60
|
+
scope: "campaign_sdk, openid, deliverability_service_general, campaign_config_server_general, " +
|
61
|
+
"AdobeID, additional_info.projectedProductContext"
|
59
62
|
}
|
60
63
|
access_token_resp = RestClient.post(as_url, as_payload, {})
|
61
64
|
json = JSON.parse(access_token_resp.body)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adobe-campaign
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Spencer Oberstadt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|